1

我想要两个容器,因为当我改变大小时,它也会改变菜单的大小。这是我的索引http://paste.laravel.com/GN8,我想要这部分:

     @if ($news->count())
            @foreach($news as $news)
    <div class="container">
<div class="doc-content-box">
        <legend>{{ $news->title }} <div id="spaceholder"></div>

        <p>
          <h6><i class="icon-calendar"></i> {{ $news->created_at }} &nbsp;&nbsp;&nbsp;&nbsp;<a href="/profile/{{ $news->author }}">{{ $news->author }}</a>
        </p>
      </h6>
      </legend>
        <div style="margin-top:7px">

<p>{{ $news->content }}</p>
    </div>

</div> <!-- /container -->
<div id="spaceholder">&nbsp;</div>
        @endforeach
        @else
    {{ 'There are no news.' }}
@endif

宽度为 749px,当我复制之前添加的 .container 时,它只是将其拉到左侧。我希望它像container-two.

我也有覆盖容器的自定义 CSS:http: //paste.laravel.com/JEt

4

1 回答 1

1

添加容器这个样式:

margin: 0 auto;
于 2013-08-15T11:51:59.887 回答