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.
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) |
.col-sm-(1-12)
|
3. Medium md
Medium devices (tablets, 768px and up) |
|
4. Large lg
Large devices (desktops, 992px and up) |
.col-lg-(1-12)
|
5. Extra Large xl
Extra large devices (large desktops, 1200px and up) |
.col-xl-(1-12)
|
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
.
Auto-layout for flexbox grid columns also means you can set the width of one column and the others will automatically resize around it.
Using the col-{breakpoint}-auto
classes, columns can size itself based on the natural width of its content.
Create equal-width columns that span multiple rows by inserting a .w-100
where you want the columns to break to a new line.
Use flexbox alignment utilities to vertically and horizontally align columns.