CSS layout: flexbox and grid, from first game to real pages
9 steps · about 11 h 5 min · Beginner
- Full CSS Course - includes flexbox and CSS grid (video, freeCodeCamp.org (YouTube), 1 h 30 min)
It covers the CSS basics you need first: the box model, display and units. Flexbox and grid build on these.
- Flexbox Froggy (interactive, Thomas Park, 30 min)
This game gives you a feel for justify-content and align-items through 24 short levels. You do it before reading any specification.
- A Complete Guide to Flexbox (guide, CSS-Tricks, 25 min)
A well-regarded visual reference that gives names to the properties you just practised.
- Learn CSS: Flexbox and Grid (tutorial, Codecademy, 2 h)
Guided projects, such as a to-do app, let you build real flexbox layouts. Check that the free tier covers the lessons you want.
- Grid Garden (interactive, Thomas Park, 30 min)
The same game format, now for grid rows, columns and placement. It prepares you to think in two dimensions.
- A Complete Guide to Grid (guide, CSS-Tricks, 30 min)
A property-by-property grid reference. Use it to fill in what the game leaves out, such as gaps, named areas and auto tracks.
- CSS Grid: Learn all about CSS Grid with Wes Bos (video, Wes Bos, 4 h)
A free video series with exercises. It goes deep on tracks, the fr unit, template areas and the comparison with flexbox.
- CSS grid layout (doc, MDN Web Docs, 40 min)
The authoritative documentation. It explains how grid fits with flexbox and positioning, and how to use line-based placement.
- Learn web development (doc, MDN Web Docs, 1 h)
Finish with MDN's layout lessons. They show how to combine flexbox and grid in complete responsive pages.