A modern alternative to CSS resets
Go to file
Nicolas Gallagher 3be9da44bc Normalize fieldset border. Fix #34
IE renders rounded corners on fieldsets by default.

All browsers - even those that use the same border value of
2px groove threedface in their UA stylesheet - have different
final rendering colors, widths, and joining of the border.

The chosen value of 1px solid #c0c0c0 takes the most common
visual border width (IE, Firefox, Opera), removes the problematic
groove width value, and takes the computed color value from Chrome.
2011-09-14 11:25:05 +01:00
.gitignore Update .gitignore 2011-06-18 23:27:13 +01:00
demo.html Demo HTML: Whitespace cleanup. Validation cleanup (remove strike element, valid input values, SVG shape.) Close #32 2011-08-30 17:07:36 +01:00
normalize.css Normalize fieldset border. Fix #34 2011-09-14 11:25:05 +01:00
README.md Link to a YUI Compressor-based minification tool in README. Close #4 2011-08-11 17:44:14 +01:00

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.

Check out the demo

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

It is suggested that you read through the normalize.css file and customise it to meet the design requirements of a project, rather blindly 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.