A grid-container centers content and applies responsive max-widths at each breakpoint—similar to Bootstrap’s .container. Use grid-container fluid or grid-container full when edge-to-edge width is intentional (heroes, dashboards).
Container variants
grid-container— default responsive max-widthgrid-container fluid— full width with guttersgrid-container full— full bleed without side padding (use carefully)
Semantic landmarks from HTML structure still matter: wrap main, header, and footer inside containers rather than sprinkling containers on every widget.
Self-check
- When would you choose a fluid container over the default?
- What does a grid-container add besides max-width?