4 ms·
For those of us who started using CSS in the late 90s (well before box-sizing was a property), the original box model made perfect sense. And it took me a long
by vehemenz 6y ago
For those of us who started using CSS in the late 90s (well before box-sizing was a property), the original box model made perfect sense. And it took me a long time to adjust to box-sizing: border-box, which I only adopted because so many frameworks started using it as default in their base styles.
I don't disagree that there wouldn't be a consensus now, but that's only because the border-box convention has completely taken over.
- earthboundkid 6y agoHard disagree. I’ve been making websites since 1997, and the default box model is garbage and unusable.
- kccqzy 6y agoAround 1997 (basically when CSS first came out) many books praised the default box model as sensible and disparaged the border-box model as IE's bastardization of CSS. People hated IE so they hated IE's broken box model.
- earthboundkid 6y agoIE had better CSS support than anything else up until they froze IE6 and eventually Firefox (Chimera!) caught up and surpassed it. The hatred of IE came because it was frozen and non-standard and full of bugs. It wasn’t that the default box model was ever good, it was just that it was the spec, and there was a big push to follow the spec instead of blindly copying bugs from other browsers. At that time, we also thought XHTML was a good idea, but eventually experience taught us how to balance the spec with practicality.
- IshKebab 6y agoI mean... if they said that they were wrong. The default is clearly mad.