Box-sizing: border-box in html element

Why is it much preferable to adjust the box-size to border-box in the html element instead of the universal element * in css ?

It isn’t at all? Just use the star and adjust everything, you really don’t want to be doing that at the level of individual elements, otherwise you’re likely going to have to add that to every single element you define

*, *::before, *::after {
  box-sizing: border-box;

Or similar

1 Like