DEV Community

Discussion on: Reset or not Reset CSS?

Collapse
 
equinusocio profile image
Mattia Astorino

You have to set box-sizing on the html and let elements inherit the property value. By this way you can set a default box-sizing but still able change the behaviour when you need it.

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

More info here