Hacker News new | past | comments | ask | show | jobs | submit login

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: