WeCodeAcademy

The Box Model

Every element is a box made of content, padding, border and margin, from the inside out.

Examplehtml
Open in editor »

Padding is space inside the border. Margin is space outside it.

Quick check

Which property adds space inside the border?

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.