Manuals / CSS Layout / Chapter 2

Core · beginner · ~40 min · Chapter 2 of 3

Flexbox

One-dimensional layouts: rows and columns that distribute space.

Path progress
50%

Step 1 of 2

Key idea

flex container controls direction and distribution; items can grow/shrink.

Key ideaDrag stickies · tap for tips
Study mapDrag stickies · tap for tipsKeep it shortdrag · tap →Name the waitdrag · tap →Scope locatorsdrag · tap →Trace when stuckdrag · tap →One browser firstdrag · tap →Isolate statedrag · tap →Assert the UIdrag · tap →Retry wiselydrag · tap →Seed datadrag · tap →Close the loopdrag · tap →Keep it shortdrag · tap →Name the waitdrag · tap →Scope locatorsdrag · tap →Trace when stuckdrag · tap →One browser firstdrag · tap →Isolate statedrag · tap →Pathwise hackdrag · tap →Key ideadrag · tap →Go deeperdrag · tap →Follow the dashed drag · tap →

Quick check

Main axis is controlled by…

Do this now

Write 3 notes on: Flexbox.

Was this step clear?
Chapter learning outcomes
  • justify/align
  • gap
  • flex

Clear these before you leave