Learn CSS: Flexbox and Grid
Lay out pages with modern CSS. Use flexbox to line items up in rows and columns, share space and wrap, then build two-dimensional layouts with CSS grid, named areas and responsive tracks.
- Intermediate level
- 5 modules
- 24 lessons
- 96 tasks and questions
Syllabus
01Flexbox BasicsTurn an element into a flex container, distribute items along the main axis, align them on the cross axis, change direction, and space and wrap items with gap and flex-wrap.8 lessons
02Flexible SizingControl how flex items grow into spare space, how they shrink when space runs out and what size they start from, then combine it all with the flex shorthand in common layout patterns.4 lessons
03Grid BasicsBuild two-dimensional layouts with CSS grid - define columns with fr units, repeat and minmax, add rows and gaps, place items across tracks, and name areas of a layout.6 lessons
04More GridAlign items inside their grid cells, size the rows and columns the grid creates automatically, and decide when to reach for grid and when for flexbox.4 lessons
05Project and ReviewLay out a complete bakery home page with grid for the page and gallery and flexbox inside the components, then review the course with a quiz.2 lessons