1dea394cbf
There are various inconsistencies surrounding headings that make this change worth trialing. The font-size of headings in IE6/7 isn't relative to the root font-size (see #61). Modern browsers set the `h1` font-size based on the depth of nesting in certain HTML5 sectioning elements. This change overcomes both the issues. At the same time, the margins are being normalized so that they are consistent and `em`-based. If people need to customise the heading font-size and margin, they can either edit normalize.css directly or override later in the source. But at least any non- customised headings will behave consistently now. Close #41 |
||
---|---|---|
.gitignore | ||
demo.html | ||
normalize.css | ||
README.md |
normalize.css
Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards. We researched the differences between default browser styles in order to precisely target only the styles that need normalizing.
What does it do?
- Preserves useful defaults, unlike many CSS resets.
- Normalizes styles for a wide range of elements.
- Corrects bugs and common browser inconsistencies.
- Improves usability with subtle improvements.
- Explains what code does using detailed comments.
How to use it
Normalize.css is intended to be used as an alternative to CSS resets.
It is suggested that you read through the normalize.css
file and customise it to meet the design requirements of a project rather including it as a "black box".
If you prefer to use a different CSS formatting style, consider using a tool like Procssor.
If you would like to minify the file, you can use a tool like this online CSS compressor using YUI Compressor or perform the minification as part of your build process.
Browser support
- Google Chrome
- Mozilla Firefox 3+
- Apple Safari 4+
- Opera 10+
- Internet Explorer 6+
License
Public domain
Acknowledgements
Normalize.css is a project by Nicolas Gallagher and Jonathan Neal.