From fc85cfb9f16200b4fa048b73c34e295dc77487d1 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sun, 20 Jan 2013 10:01:17 -0800 Subject: [PATCH] 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 --- CHANGELOG.md | 1 + normalize.css | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b01fcf..7f03a9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/normalize.css b/normalize.css index 6ad7071..0dd72b0 100644 --- a/normalize.css +++ b/normalize.css @@ -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; } /**