A beginner lesson in the CSS box model, explaining how margin, padding and borders affect the space and size of elements on a web page. It is part of a series for people building their first website with HTML and CSS.
What you’ll learn
✓Explain how margin, padding and borders make up the CSS box model
✓Adjust spacing and borders on HTML elements with CSS
✓Predict how box sizing changes the layout of a page