Overview
Grid is the layout primitive most worth investing in. A handful of patterns — named columns, intrinsic sizing, and auto-fit with minmax — cover the majority of real-world layouts without resorting to media queries.
Highlights
- Named template columns keep the breakout pattern readable across pages
- grid-template-columns: repeat(auto-fit, minmax(...)) for responsive cards with no breakpoints
- Use subgrid to align children of nested grids without flattening the markup
Comments