Two Boxes, Same Size
HTML / CSS
20 pts
Two Boxes, Same Size
Both boxes already have padding: 20px and a 10px border. Make both boxes exactly 300px wide on the screen, in two different ways:
.one: usebox-sizing: border-box;andwidth: 300px;..two: keep the defaultcontent-boxand work out the content width yourself (300 − padding − border).
Checklist
- Make
.one300px in total withborder-box. - Make
.two300px in total while it stayscontent-box.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
