CSS Reset
Initially, upon exploring the web developer community using the search query “CSS Reset,” you will encounter two distinct categories of articles:
- Hard CSS Reset:
- The first type does a complete reset so that the whole website is free from the default styling algorithm of the client browser, as a result all components are styled the same way.
- Soft CSS Reset:
- The second type aims to normalise the styles across browsers, this is to mitigate the issue caused by different browser applying different default rules. Such reset tries ti achieve a consistent default stylesheet throughout browser.
CSS Reset Examples
Hard CSS Reset: Eric Meyer’s reset
|
|
Comparison:
- Before reset: http://web.simmons.edu/~grovesd/comm244/notes/week3/html-test-page.html
- After reset: http://web.simmons.edu/~grovesd/comm244/notes/week4/reset-example.html
Source:
- https://github.com/necolas/normalize.css/blob/master/normalize.css
- https://meyerweb.com/eric/tools/css/reset/index.html
Soft CSS Reset: Normalise.css
|
|
Source:
- https://github.com/necolas/normalize.css
- https://github.com/necolas/normalize.css/blob/master/normalize.css
Soft CSS Reset: Josh Comeau’s Reset
|
|
Source:
Reference
- https://github.com/necolas/normalize.css/blob/master/normalize.css
- https://meyerweb.com/eric/tools/css/reset/index.html
- https://www.joshwcomeau.com/css/custom-css-reset/#one-box-sizing-model-2
- https://github.com/necolas/normalize.css/blob/master/normalize.css