3 ms·
What is the difference between a reset.css and a normalize.css? They both seem like they are doing the same or similar things. Is it a naming preference? Is one
by irrational 3y ago
What is the difference between a reset.css and a normalize.css? They both seem like they are doing the same or similar things. Is it a naming preference? Is one better than the other? Do some people use both?
- ceetrav 3y agoDifferent browsers provide different default styles. Reset removes these styles while normalize tries to make the default styles consistent between the browsers.
- sedatk 3y agoI wonder how much the style difference among browsers is today. Maybe, we only need a one liner to align all browsers but nobody bothered to check again.
- Klathmon 3y agoThere are a ton of significant differences between browsers, especially when it comes to input elements, and around focus. There are even OS differences between the same browser! This site shows some of the default styles for different elements: https://browserdefaultstyles.com https://browserdefaultstyles.com
- sedatk 3y agoAwesome source, thank you!
- deleted 3y ago[deleted]
- codedokode 3y agoReset removes all default styles, so paragraphs become without margins, lists without bullets, tables without borders etc. Normalize tries to fix default styles so that they look the same in every browser.
- culi 3y agoReset wants to remove browser defaults. Normalize wants to make browsers have the same defaults. Usually with a particular focus on accessibility and more "invisible" behaviors.