re: Reset or not Reset CSS? VIEW POST

re: Css resets are almost useless since they are invasive, opinionated and not wcag compliant. You need to reset only based on your browser support. P...

Ps: you should fix the box-sizing declaration.

Can you explain?


I always like to apply it to pseudo elements as well.

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

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

code of conduct - report abuse