bootstrap 3 full width image and div in container

后端 未结 4 1435
情书的邮戳
情书的邮戳 2021-01-19 11:07

I\'m trying to set some divs to width: 100% on Twitter Bootstrap 3 (including no paddings or margins).

JSfiddle: http://jsfiddle.net/rq9ycjcx/

H

4条回答
  •  粉色の甜心
    2021-01-19 11:22

    Use

    . As per Bootstrap Docs: Use .container-fluid for a full width container, spanning the entire width of your viewport.

    There is 0 padding on container-fluid.

    In your code you have what appears to be body content in your header and you also have a div class="container" outside of your header and footer. This is not correct, you should have your container/container-fluid inside of your body. Also for your header you should use .

    Updated Fiddle

提交回复
热议问题