Grid system

Powerful mobile-first flexbox 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.


Breakpoints
1. Extra small (default)

Extra small devices (portrait phones, less than 576px)

.col-(1-12)
2. Small sm

Small devices (landscape phones, 576px and up)

@media (min-width: 576px) {}

.col-sm-(1-12)
3. Medium md

Medium devices (tablets, 768px and up)

@media (min-width: 768px) {}

.col-md-(1-12)

4. Large lg

Large devices (desktops, 992px and up)

@media (min-width: 992px) {}

.col-lg-(1-12)
5. Extra Large xl

Extra large devices (large desktops, 1200px and up)

@media (min-width: 1200px) {}

.col-xl-(1-12)


Responsive classes

For grids that are the same from the smallest of devices to the largest, use the .col and .col-* classes. Specify a numbered class when you need a particularly sized column; otherwise, feel free to stick to .col.

col
col
col
col
col-8
col-4

Auto-layout columns

1 of 2
1 of 2
1 of 3
1 of 3
1 of 3

Setting one column width

Auto-layout for flexbox grid columns also means you can set the width of one column and the others will automatically resize around it.

1 of 3
2 of 3 (wider)
3 of 3
1 of 3
2 of 3 (wider)
3 of 3

Variable width content

Using the col-{breakpoint}-auto classes, columns can size itself based on the natural width of its content.

1 of 3
Variable width content
3 of 3

Equal-width multi-row

Create equal-width columns that span multiple rows by inserting a .w-100 where you want the columns to break to a new line.

col
col
col
col

Mix and match

.col .col-md-8
.col-6 .col-md-4
.col-6 .col-md-4
.col-6 .col-md-4
.col-6 .col-md-4
.col-6
.col-6

Alignment

Use flexbox alignment utilities to vertically and horizontally align columns.

One of three columns
One of three columns
One of three columns
One of three columns
One of three columns
One of three columns
One of three columns
One of three columns
One of three columns

One of three columns
One of three columns
One of three columns

Horizontal Alignment

.col-4
.col-4
.col-4
.col-4
.col-4
.col-4
.col-4
.col-4
.col-4
.col-4