Randy Minder
Randy Minder

Reputation: 48442

New to Bootstrap - How to intepret grid sizing

I'm pretty new to Bootstrap and am trying to understand the grid system. If I have something like this:

.col-md-6 .col-xs-12

I know that for a medium size it'll consume 6 units and for extra small size it will consume all 12. However, what will it use for lg and sm?

Upvotes: 0

Views: 39

Answers (1)

Carol Skelly
Carol Skelly

Reputation: 362520

It will use 6 for 'lg', and 12 for 'sm'..

You only need to write classes for the smaller of the breakpoints you want to support. So what you have is shorthand for..

.col-lg-6 .col-md-6 .col-sm-12 .col-xs-12

Demo: http://www.bootply.com/124738

Upvotes: 1

Related Questions