Lesson 6 of 10
◤ The Box Model
What You'll Learn
- Every HTML element is a box: content, padding, border, margin
- How to control spacing with padding and margin
- The difference between box-sizing: content-box and border-box
Quick Check
1. In the box model, what is padding?
2. What does margin do?
3. With box-sizing: border-box, does padding increase the element's total width?
4. What is the order of box model layers from inside to outside?