The box model, live

Drag a slider. Watch the box. The numbers on the right are what the browser actually computes.

total width on screen: —
margin
border
padding
content