Normalize h1 margin

Chrome, Safari, and Firefox all adjust the margin of `h1` at several
levels of nesting within HTML5 sectioning elements. This change ensures
that the margin, like the font-size, does not vary in these contexts.

Fix gh-160
This commit is contained in:
Nicolas Gallagher 2013-01-20 10:01:17 -08:00
parent 6729f5e8f5
commit fc85cfb9f1
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,6 @@
== HEAD
* Normalize `h1` margin when within HTML5 sectioning elements.
* Normalize `hr` element.
* Remove unnecessary `pre` styles.
* Add `main` element to HTML5 display definitions.

5
normalize.css vendored
View File

@ -101,12 +101,13 @@ a:hover {
========================================================================== */
/**
* Address variable `h1` font size within `section` and `article` contexts in
* Firefox 4+, Safari 5, and Chrome.
* Address variable `h1` font-size and margin within `section` and `article`
* contexts in Firefox 4+, Safari 5, and Chrome.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/**