12-column responsive grid, auto-fit variants, nesting, offsets, and alignment
Responsive breakpoints used by the grid column classes
| Prefix | Min-width | Target Devices |
|---|---|---|
| .col-xs-* | 0 (no media query) | All devices (base / small phones) |
| .col-sm-* | 576px | Mobile landscape |
| .col-md-* | 768px | Tablets (portrait) |
| .col-lg-* | 992px | Tablets (landscape) / Small laptops |
| .col-xl-* | 1200px | Desktop |
| .col-xxl-* | 1440px | Large desktop |
| .col-xxxl-* | 1920px | Full HD / 2K |
| .col-4k-* | 2560px | 4K displays |
Grid container: .gr-row — 12-column CSS Grid with gap: 1.25rem
Common equal-width column distributions using .col-xs-*
Asymmetric layouts where column spans add up to 12
Columns change span at different viewport widths. Resize the browser to see the effect.
Use inline grid-column-start to push columns. Since the grid is CSS Grid based, offsets are achieved via the start position.
Place a .gr-row inside any column to create a nested 12-column sub-grid
Use align-items and justify-items on .gr-row for alignment control
align-items: start
align-items: center
align-items: end
Fluid grids that auto-wrap based on minimum column width. No explicit column count needed.
Common page patterns composed with the grid system
Quick reference for all grid system classes
| Class | Description |
|---|---|
| .gr-row | 12-column CSS Grid container with gap: 1.25rem |
| .col-xs-{1-12} | Column span at all screen sizes (no media query) |
| .col-sm-{1-12} | Column span at 576px and above |
| .col-md-{1-12} | Column span at 768px and above |
| .col-lg-{1-12} | Column span at 992px and above |
| .grid-auto | Auto-fit grid with minmax(200px, 1fr) |
| .grid-auto-sm | Auto-fit grid with minmax(150px, 1fr) |
| .grid-auto-md | Auto-fit grid with minmax(250px, 1fr) |
| .grid-auto-lg | Auto-fit grid with minmax(300px, 1fr) |
| .grid-auto-xl | Auto-fit grid with minmax(400px, 1fr) |