Basti
Basti

Reputation: 13

Does the Normalize.css works fine if I add it as second css stylesheet or does it overwrite something?

as above mentioned i am not sure if my CSS file for resetting the default browser settings works fine if I add it as a second stylesheet link. Can u help me? Thanks

Upvotes: 0

Views: 833

Answers (2)

Normalize.css is a CSS(Cascading Style Sheets) file that provides better cross-browser consistency in the default styling of HTML elements. It corrects different kind of common bugs in browsers.Such as,

  1. common desktop and mobile browser bugs that are out of scope for resets,
  2. display settings for HTML5 elements,
  3. correcting font-size for preformatted text etc..

So as above mentioned, Normalize.css contain styles that apply globally to all native HTML elements. So if you import Normalize.css not as the first stylesheet of your project may override some other importent styles which you have declared in other CSS files which you imported before the Normalize.css file.

I hope that below link will be helpful for you: https://yuilibrary.com/yui/docs/cssnormalize/

Upvotes: 1

Quentin
Quentin

Reputation: 943568

Normalize.css overwrites lots of things. That's the point of it.

Your rules might be written in such a way that they are more specific that the ones in normalize.css, or they might not.

Upvotes: 1

Related Questions