I've read a lot about discussions about whether or not to use the box-sizing: border-box;
property as follows:
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
I know she's very influential, especially in layout design, such as the interaction between borders, paddings, etc.
But why use it this way? Or why not use it? Once you're applying style to all elements.
In some cases I used, I could notice a huge repetition of properties when the DOM hierarchy was deep.
If it's not used this way, would it be the right thing to set only on the properties I'm going to need?
Or rather, what is the real function of the box-sizing
property? And what, in fact, is the best way to use this function?