The grid system is a fluid system with a max width of 120rem (1200px), that shrinks with the viewport. The max width can be controlled by changing the --grid-maxWidth
in the :root
.
Much like other frameworks, wrap your content in a .container
to center it on the page.
A simple way to build flexible responsive columns:
.row
container.col
elements as you wantEach column will have an equal width, in a row. There is no restriction on number of columns, but it is recommended not to add more than 12 columns in a row.
You can also specify the size of the columns
.row
container.col-n
child where n can be from 1 to 12Each column class is named after how many columns you want out of 12. So if you want 4 columns out of 12, use .col-4
.
You can use a combination of flexible and sized columns.
When using a combination, the sized width column takes the size specified and the remaining is filled in by the flexible column.
Pro tip: Create equal-width columns that span multiple rows by inserting a .is-full-width
where you want the columns to break to a new line. Here .is-full-width
is one of the utility class.