CSS / Bootstrap容器

时间:2013-08-05 17:16:47

标签: css twitter-bootstrap

我想要两个容器,因为当我更改大小时,它也会改变菜单的大小。这是我的索引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

1 个答案:

答案 0 :(得分:1)

添加此样式的容器:

margin: 0 auto;