Skip to content

Commit

Permalink
Normalize h1 margin
Browse files Browse the repository at this point in the history
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 necolasgh-160
  • Loading branch information
necolas committed Jan 20, 2013
1 parent 6729f5e commit fc85cfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
5 changes: 3 additions & 2 deletions normalize.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit fc85cfb

Please sign in to comment.