| Start |
|---|
| normalize.css Browsers have a default set of CSS styles they use for rendering elements. Some of these styles can even be customised using the browser's settings to change default font face and size definitions, for example. The styles contain the definition of which elements are supposed to be block-level or inline, among other things. Because these default styles are given some leeway by the language specifications and because browsers may not follow the specs properly they can differ from browser to browser. This is where normalize.css (opens new window) comes into play. It overrides the most common inconsistencies and fixes known bugs. What does it do
So, by including normalize.css in your project your design will look more alike and consistent across different browsers. Difference to reset.cssYou may have heard of While normalize.css provides consistency by setting different properties to unified defaults, reset.css achieves consistency by removing all basic styling that a browser may apply. While this might sound like a good idea at first, this actually means you have to write all rules yourself, which goes against having a solid standard. |
| Approaches and Examples CSS resets take separate approaches to browser defaults. Eric Meyer’s Reset CSS has been around for a while. His approach nullifies many of the browser elements that have been known to cause problems right off the back. The following is from his version (v2.0 | 20110126) CSS Reset. Eric Meyer's Reset CSS (opens new window) Normalize CSS on the other and deals with many of these separately. The following is a sample from the version (v4.2.0) of the code. Normalize CSS (opens new window) RemarksMeyer's Reset, while effective, makes the same changes to nearly every commonly used element. This has the result of polluting web browser inspector windows with the same applied styles over and over again, and creates more work for the browser (more rules to apply to more elements). The Normalize technique, on the other hand, is much more focused and less of a broad-brush technique. This simplifies the work on the part of the browser, and results in less clutter in the browser inspection tools. |
Read Article
https://develop.horje.com/learn/1434/reference