GLOSSARY · A WORD, UNPACKED
box model
the content, padding, border, and margin the browser wraps around every element.
A little more detail
Width and height refer to the content box under the initial content-box model, so padding and border are added outside. border-box includes padding and border in the declared size. Margin sits outside the border in both models and is never part of width. Vertical margins of adjacent blocks can also collapse.
See it in practice
These lessons pair the idea with examples you can change and run.