Reputation: 13
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
Reputation: 567
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,
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
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