4 ms·
Both models have an advantage. The padding outside the width makes it easy to make a border that doesn't touch the box, while the padding inside the box makes..
by Edootjuh 15y ago
Both models have an advantage. The padding outside the width makes it easy to make a border that doesn't touch the box, while the padding inside the box makes... well... padding a box easier.
Personally, I find the padding inside the box more valuable so when I found the `* { box-sizing: border-box }` post I decided to use it, and it's also what I expected it to behave like when starting web design.