As we know, Bootstrap sets the border-box as the value of box-sizing in reset.css. But the default value of box-sizing is content-box. And in my current usage, I always use the default value because of the rule-convention over configuration. Which would you prefer? Please share your reason, thank you.
Asked
Active
Viewed 1,149 times
2
-
1In most cases border-box makes more sense. I have never seen cases when `content-box` was a preferred, it makes styling more confusing and usually makes box grow beyond sizes you expect. – dfsq Sep 10 '17 at 09:55
-
There are elements where the default sizing is border-box though, so you have a good reason to reset it, no matter what to. – Mr Lister Sep 10 '17 at 14:26
-
@ Mr Lister Could you list some elements? – Jamter Sep 11 '17 at 02:36
-
@Jamter `select` springs to mind. There were others, but apparently those have been recognised as bugs, and corrected. `hr` was one, but only in Firefox, until recently. – Mr Lister Sep 11 '17 at 12:29