2 ms·
> I never quite get the reasoning behind changing box-sizing. The relevant section from Every Layout is a great explainer: https://every-layout.dev/rudiments/b
by couchand 5y ago
> I never quite get the reasoning behind changing box-sizing.
The relevant section from Every Layout is a great explainer: https://every-layout.dev/rudiments/boxes/ https://every-layout.dev/rudiments/boxes/
- chrismorgan 5y agoAs much as it has any explanation (“Generally, it is considered preferable to use the border-box model for all boxes. It makes calculating/anticipating box dimensions easier.” is about all it has, really), that’s the same old explanation that I have already offered a rebuttal to. I hold that border-box encourages layout thinking rather than content thinking, and that that’s normally a bad thing. Most of the time, border-box is making doing the wrong thing easier.