mirror of
https://github.com/necolas/normalize.css.git
synced 2024-12-25 15:14:19 +00:00
Remove hr
and separate some margin normalizations
Recommend that people supporting IE6/7 do not use the `hr` element at all. It requires far more work than just normalizing margins. IE6/7 do not collapse margins set on `hr` with margins of pre- or proceeding elements. Separate the margin normalizations for `p` and `pre` from that for `h3`. Despite sharing the same margin value, headings are qualitatively different from these other elements. Both in terms of customisation and debugging using browser tools, it is cleaner to keep the margins of heading separate.
This commit is contained in:
parent
f1a096a498
commit
cb176831b9
24
normalize.css
vendored
24
normalize.css
vendored
@ -1,4 +1,4 @@
|
|||||||
/*! normalize.css 2012-02-07T05:02 UTC - http://github.com/necolas/normalize.css */
|
/*! normalize.css 2012-02-07T10:31 UTC - http://github.com/necolas/normalize.css */
|
||||||
|
|
||||||
/* =============================================================================
|
/* =============================================================================
|
||||||
HTML5 display definitions
|
HTML5 display definitions
|
||||||
@ -133,11 +133,6 @@ h2 {
|
|||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: 1.17em;
|
font-size: 1.17em;
|
||||||
}
|
|
||||||
|
|
||||||
h3,
|
|
||||||
p,
|
|
||||||
pre {
|
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -177,14 +172,6 @@ blockquote {
|
|||||||
margin: 1em 40px;
|
margin: 1em 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Addresses styling not present in IE6/7
|
|
||||||
*/
|
|
||||||
|
|
||||||
hr {
|
|
||||||
margin: 0.5em auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Addresses styling not present in S5, Chrome
|
* Addresses styling not present in S5, Chrome
|
||||||
*/
|
*/
|
||||||
@ -202,6 +189,15 @@ mark {
|
|||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Addresses margins set differently in IE6/7
|
||||||
|
*/
|
||||||
|
|
||||||
|
p,
|
||||||
|
pre {
|
||||||
|
margin: 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Corrects font family set oddly in IE6, S4/5, Chrome
|
* Corrects font family set oddly in IE6, S4/5, Chrome
|
||||||
* en.wikipedia.org/wiki/User:Davidgothberg/Test59
|
* en.wikipedia.org/wiki/User:Davidgothberg/Test59
|
||||||
|
Loading…
Reference in New Issue
Block a user