Responsive layouts: CSS Grid first, then container queries

13 steps · about 4 h 59 min · Intermediate

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. 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.

  11. 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.

  12. @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.

  13. 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.