mirror of
https://github.com/necolas/normalize.css.git
synced 2024-12-25 15:14:19 +00:00
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:
parent
6729f5e8f5
commit
fc85cfb9f1
@ -1,5 +1,6 @@
|
|||||||
== HEAD
|
== HEAD
|
||||||
|
|
||||||
|
* Normalize `h1` margin when within HTML5 sectioning elements.
|
||||||
* Normalize `hr` element.
|
* Normalize `hr` element.
|
||||||
* Remove unnecessary `pre` styles.
|
* Remove unnecessary `pre` styles.
|
||||||
* Add `main` element to HTML5 display definitions.
|
* Add `main` element to HTML5 display definitions.
|
||||||
|
5
normalize.css
vendored
5
normalize.css
vendored
@ -101,12 +101,13 @@ a:hover {
|
|||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Address variable `h1` font size within `section` and `article` contexts in
|
* Address variable `h1` font-size and margin within `section` and `article`
|
||||||
* Firefox 4+, Safari 5, and Chrome.
|
* contexts in Firefox 4+, Safari 5, and Chrome.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
|
margin: 0.67em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user