Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Bootstrap 3 Grid, do I need a container?

Bootstrap 3 Grid, do I need a container?

Problem

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 system was design to be within a container. What happens if I don't use the container class?, do I need it?, if so could I make the container class width 100% without messing up bootstrap's media-queries, or is there any other or better way to build a fluid layout with bootstrap 3.

Problem courtesy of: Jose Rodriguez Masis

Solution

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

Solution courtesy of: ZimSystem

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

Bootstrap 3 Grid, do I need a container?

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×