Sanitize.css was created as an alternative to normalize.css, but without being inspired or holding any ties to that project.
It works practically the same way, featuring a set of CSS rules for normalizing how multiple HTML tags are rendered on a page, resetting their behavior to a "zero" value or something similar.
This ensures that all subsequent CSS rules that you apply on top start from this "zero" value and can be controlled from within the same source code and you won't need different stylesheets for each major browser vendor.
The way you use Sanitize.css is to load it before any other CSS, and write your code on top of its default rules.
Besides CSS, Sanitize's code is also available in LESS.
What is new in this release:
- Added .editorconfig.
- Sanitize.css uses Grunt to compile Less source code, as Sanitize.css is broken into modules. This also adds CSSComb support and Travis CI build checking (to avoid bad Less code).
- Improve comments.
- Reorder code.
- Added max-width table styling.
- Improved font style inheritance in form elements.
- Improved figure margin normalization.
- Normalize optgroup.
Comments not found