Skip to main content

Practice ยท 1 of 3

Prediction: Box Math

A challenge in two parts. PART 1 โ€” fix the sizing: the .box in the boilerplate has width: 200px but renders 248px wide. Add the universal border-box rule at the top of the stylesheet so width means what it says. Keep the .box rule exactly as it is. PART 2 โ€” space it out: give .box a margin of 1rem on all sides.

Difficulty: beginner

Back to lesson: Practice: The Box Model โ€” Practice