Bootstrap includes a powerful mobile-first grid system for building layouts of all shapes and sizes. It’s based on a 12 column layout and has multiple tiers, one for each media query range. You can use it with Sass mixins or our predefined classes.
Options
|
Extra small
<544px
|
Small
≥544px
|
Medium
≥768px
|
Large
≥992px
|
Extra large
≥1200px
|
Grid behavior |
Horizontal at all times |
Collapsed to start, horizontal above breakpoints |
Container width |
None (auto) |
576px |
720px |
940px |
1140px |
Class prefix |
.col-xs- |
.col-sm- |
.col-md- |
.col-lg- |
.col-xl- |
# of columns |
12 |
Gutter width |
1.875rem / 30px (15px on each side of a column) |
Nestable |
Yes |
Offsets |
Yes |
Column ordering |
Yes |
Example: Stacked-to-horizontal
Example: Mobile, tablet, desktop
col-xs-12 col-sm-6 col-md-8
Example: Offsetting columns
.col-md-3 .col-md-offset-3