Note: Our system is based on the Bootstrap toolkit. The contents of this page are a simplified version of Bootstrap's extensive documentation.
Our grid system uses a series of containers, rows, and columns to layout and align content. It's built with flexbox and is fully responsive.
min-width
media queries, meaning they affect that breakpoint and all those above it (e.g., .col-sm-4
applies to sm
, md
, lg
, xl
, and xxl
). This means you can control container and column sizing and behavior by each breakpoint..container
for a responsive pixel width, .container-fluid
for width:100%
across all viewports and devices, or a responsive container (e.g., .container-md
) for a combination of fluid and pixel widths.padding
(called a gutter) for controlling the space between them. This padding
is then counteracted on the rows with negative margins to ensure the content in your columns is visually aligned down the left side. Rows also support modifier classes to uniformly apply column sizing and gutter classes to change the spacing of your content.col-4
spans four). widths
are set in percentages so you always have the same relative sizing.Our grid system can adapt across all six default breakpoints, and any breakpoints you customize. The six default grid tiers are as follows:
As noted above, each of these breakpoints have their own container, unique class prefix, and modifiers. Here's how the grid changes across these breakpoints:
xs <576px |
sm ≥576px |
md ≥768px |
lg ≥992px |
xl ≥1200px |
xxl ≥1400px |
|
---|---|---|---|---|---|---|
Container max-width |
None (auto) | 540px | 720px | 960px | 1140px | 1320px |
Class prefix | .col- |
.col-sm- |
.col-md- |
.col-lg- |
.col-xl- |
.col-xxl- |
# of columns | 12 |