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
content-box
(default)
border-box
width
300px
padding
16px
border-width
2px
margin
20px