Normalize css and reset Global

Asked

Viewed 136 times

0

Is there any way to use Normalize css and at the same time give a global reset on style sheets? I use the reset like this in my css:

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

But even putting my file in the rel link after normalize css it can’t overwrite. Is there any way to make it work along with normalize?

1 answer

1

You can use the !important so he doesn’t use the css hierarchy.

The code will depend on how it was loaded (The inclusion sequence in HTML and by hierarchy).

If for an example you upload this code after all the other CSS you have on the page, it will overwrite what was before, or if you want to prioritize something else, can also put tags to make the code more and more specific to the element and so it keep the formatting you choose.

You can see more examples in this link:

https://tableless.com.br/efeito-cascata-e-especificidade-do-css/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.