Bootstrap Grid, do I need a container?

后端 未结 4 959
無奈伤痛
無奈伤痛 2020-11-29 10:24

I\'ve been playing with bootstrap 3 and I noticed that if you use the Grid System without a container it becomes fluid, someone told me I shouldn\'t do that because the syst

4条回答
  •  北海茫月
    2020-11-29 10:38

    Update Bootstrap 4

    Rows should also be wrapping in container or container-fluid in Bootstrap 4 to prevent horizontal scolling caused by negative margins on the .row.

    Bootstrap 3

    You should wrap row in container or you'll have a problem with the negative margins that BS 3 uses for the row element. Basically the row is designed to be within a container. Read more on the Bootstrap grid

    Play with this example on Bootply: http://bootply.com/83751

提交回复
热议问题