.container, .row, and .col-{n} classes to create responsive layouts.
Basic Usage
Wrap your content in a.container, create rows with .row, and specify column widths with .col-{n} where n is 1-12.
Equal Width Columns
Different Column Widths
Column Offsets
Use.offset-{n} classes to push columns to the right (supports offset-1 through offset-6).
Column End
Use.col-end to make a column span to the end of the grid.
Complete Example
CSS Classes
Constrains content to a maximum width and centers it. Max width: 1280px.
Creates a grid container with 12 columns and configurable gap spacing.
Specifies column span (1-12). Example:
.col-4 spans 4 columns.Offsets a column by n columns (1-6). Pushes the column to the right.
Makes a column span to the end of the grid, regardless of its width.
CSS Variables
Number of columns in the grid
Gap between grid columns
Maximum width of the container
Horizontal padding of the container
Custom property for controlling column span. Set inline for custom spans.
Responsive Behavior
On screens 768px and below:- Grid changes to 4 columns
- Gap reduces to 1rem
- All columns span full width by default
- Offsets are removed
The grid system automatically stacks columns on mobile devices for better responsive behavior.