bootstrap 3 full width image and div in container

后端 未结 4 1436
情书的邮戳
情书的邮戳 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:37

    As suggested above, you can create a helper class

    .padding-0 {
        padding: 0;
    }
    

    and apply it to any HTML elements for which you need a padding reset. So in your case, it would look like this:

    For the second problem, set height of .gray class to auto :

    @media () {
        .gray {
            height: auto;
        }
    }
    

    Note: You could also remove line-height: 80px, it's optional :)

    http://jsfiddle.net/rq9ycjcx/8/

提交回复
热议问题