Manuals / CSS Layout / Chapter 1

Start · beginner · ~30 min · Chapter 1 of 3

Box model & flow

Margin, border, padding, content — and normal flow.

Path progress
17%

Step 1 of 2

Key idea

Every element is a box. box-sizing: border-box makes sizes predictable.

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

border-box includes…

Do this now

Write 3 notes on: Box model.

Was this step clear?
Chapter learning outcomes
  • Box model
  • display
  • DevTools

Clear these before you leave