I'm getting started on Bootstrap 3 and I'm having some trouble understanding how the grid classes are meant to be used.
Here's what I've figured out so far:
It appears that the classes col-sm-#
and col-lg-#
differ from plain old col-#
in that they will only apply when screens are above a certain size (768px and 992px respectively). If you omit the -sm- or -lg- the divs will never collapse into one column.
However, when I create two divs inside a row that are both col-sm-6
it seems they are only side by side when the window is between 768px and 992px wide. In other words, if I shrink the window all the way down and then slowly widen it, the layout is single column, then two columns, then back to single column again.
- Is this the intended behavior?
- If I want two columns for anything over 768px, should I apply both classes? (
<div class="col-sm-6 col-lg-6">
) - Should
col-6
also be included?<div class="col-6 col-sm-6 col-lg-6">