Responsive layouts: CSS Grid first, then container queries
13 steps · about 4 h 59 min · Intermediate
- Grid Garden - A game for learning CSS grid (interactive, Codepip, 30 min)
Playing the levels is a low-stakes way to learn grid-column and grid-row placement before you build anything real.
- Grid | web.dev (guide, web.dev (Learn CSS), 30 min)
Covers fr units, minmax(), and the difference between auto-fill and auto-fit, which responsive grids depend on.
- An Interactive Guide to CSS Grid (article, Josh W. Comeau, 40 min)
Interactive demos explain grid construction and named areas, so your mental model is solid before you add responsiveness.
- A Practical Guide to CSS Grid Layout for Responsive Web Design (article, Redsurge Technology, 25 min)
Shows grid-template-areas, minmax() and auto-fit used together in a complete page layout, plus where subgrid fits.
- A Complete Guide to CSS Grid Layout (reference, CSS-Tricks, 20 min)
A property-by-property reference to keep open while you build the page-level layout.
- CSS container queries - MDN Web Docs (doc, MDN, 25 min)
The authoritative introduction to container-type, container-name and @container, and how they differ from media queries.
- Container queries | web.dev (guide, web.dev (Learn CSS), 20 min)
Adds the container shorthand, range syntax and a worked demo, so you can write real conditions.
- Container Queries Are Going to Change How We Make Layouts (video, Kevin Powell (via Class Central), 24 min)
A live walkthrough of named containers and container-type: size, and of combining container queries with flexbox and grid.
- Using container size and style queries - CSS - MDN Web Docs (doc, MDN, 20 min)
Extends size queries to style queries and name-only queries once the basics feel comfortable.
- CSS Container Queries Explained: When to Use Them Now (article, TechDrifting, 10 min)
Explains the main gotcha: size containment can collapse a layout, and when to use inline-size instead.
- Content-First Breakpoints for Responsive Web Design (video, Kevin Powell (via Class Central), 25 min)
Helps you decide when a media query on the page is right and when a container query on the component is better.
- @container CSS at-rule - MDN Web Docs (reference, MDN, 15 min)
The syntax reference for logical keywords, nested queries and container units, for when you build your own components.
- CSS Container Queries (article, CSS-Tricks, 15 min)
A closing reference on container-type and container-name, with links to further demos to practise on.