Loading video player…

CSS Layout With Flexbox and Grid (Overview)

This course is about arranging the boxes on a web page, and the site you’ll lay out is the Elm Street Community Garden’s. As the course begins, every box on its home page stacks in one centered column.

If you’ve fought a layout until it looked right, this course teaches the model behind it, where the parent arranges its children. Rosa, the garden’s volunteer coordinator, wants the whole site laid out. Along the way, you’ll draw a map of the garden’s plots and set a garden photo beside each volunteer’s text.

By the end of this course, you’ll be able to lay out a full site with Flexbox and Grid:

  • A header and nav
  • A page shell that fills the screen
  • Card grids
  • A sidebar and a sticky header
  • Choosing the right tool for each

A project then lays out every page of the garden’s site at desktop width. Making the site work on a phone is the next step on the path.

Before You Start

You need to know the box model, block and inline boxes, how the cascade picks between competing rules, and DevTools’ Styles and Computed panes. For tools, you’ll need:

  • A current version of Chrome or Edge
  • An editor with a live preview

You’ll learn DevTools’ flex and grid overlays in the course. If you’re new to the garden’s site, the first lesson gives you its starter folder.

How the Course Works

Each section mixes videos and text lessons, then ends with a browser exercise, where tests check your CSS. You build the garden’s site in your editor. The project is checked against screenshots and ends with explaining your layout to the AI mentor. Then a quiz ends the course. Start with the first lesson, Let the Parent Arrange Its Children.

Download

Course Slides (.pdf)

2.8 MB
Download

Sample Code (.zip)

19.2 KB

00:00 Welcome to CSS Layout With Flexbox and Grid. It’s about arranging the boxes on a web page.

00:07 Here’s the site you’ll lay out: the Elm Street Community Garden’s home page today. Every box stacks in one centered column. And here’s the same page when you finish.

00:20 If you’ve fought a layout until it looked right, this course teaches the model behind it, where the parent arranges its children.

00:29 Rosa, the garden’s volunteer coordinator, wants the whole site laid out. You’ll draw a map of the garden’s plots, and set a garden photo beside each volunteer’s text.

00:42 By the end, you’ll lay out a full site with flexbox and grid: a header and nav, a page shell that fills the screen, card grids, a sidebar and a sticky header.

00:52 And you’ll choose the right tool for each. Then a project lays out every page of the garden’s site at desktop width. Making the site work on a phone is the next step on the path.

01:06 You need to know the box model, block and inline boxes, how the cascade picks between competing rules, and DevTools’ Styles and Computed panes. You’ll need a current Chrome or Edge and an editor with a live preview.

01:20 You’ll learn DevTools’ layout overlays. New to the garden’s site? The first lesson gives you its starter folder.

01:30 Each section mixes videos and text lessons, then ends with a browser exercise, where tests check your CSS. You build the garden’s site in your editor. The project is checked against screenshots and ends with explaining your layout to the AI mentor.

01:45 Then a quiz ends the course. Start with the first lesson, Let the Parent Arrange Its Children.

Become a Member to join the conversation.