Core: learn it Step 3 of 16 on the Frontend Developer roadmap

The box model

Every element is a box made of content, padding, border and margin. Set box-sizing: border-box so widths behave the way you expect.

Learn it on JeliScript

Resources

More in CSS fundamentals

See it on the Frontend Developer roadmap