Lesson 7 of 10

⛶ Flexbox Layout

🎯 Grades 6–8 ⏱ ~35 minutes 🟡 Intermediate

What You'll Learn

  • How display: flex turns a container into a flex container
  • justify-content and align-items for axis-based alignment
  • flex-wrap and gap for responsive multi-row layouts
Quick Check

1. What CSS property enables Flexbox on a container?

Aposition: flex
Bdisplay: flex
Clayout: flex

2. Which property aligns items along the cross axis?

Ajustify-content
Balign-items
Cflex-direction

3. What does flex-wrap: wrap do?

AWraps text inside flex items
BAllows items to wrap to new rows when space runs out
CReverses the direction of items

4. justify-content: space-between puts items:

AAll at the start
BFirst at start, last at end, equal space between
CAll centered