Skip to content

Commit

Permalink
Update CSS comments
Browse files Browse the repository at this point in the history
The margin of lists in IE6/7 is set by 'pt', not relative to the root font-size. This is contrary to the HTML5 spec and other modern browsers, including IE8+.

If people need to customize the list margin, they can either edit normalize.css directly or override later in the source. But at least any non-customised lists will behave consistently now.
  • Loading branch information
jonathantneal committed Feb 7, 2012
1 parent 450aa56 commit e469f75
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions normalize.css
Expand Up @@ -262,6 +262,10 @@ sub {
Lists Lists
========================================================================== */ ========================================================================== */


/*
* Addresses margins set differently in IE6/7
*/

dl, dl,
menu, menu,
ol, ol,
Expand All @@ -271,16 +275,24 @@ ul {
margin: 1em 0; margin: 1em 0;
} }


dd {
margin: 0 0 0 40px;
}

/*
* Addresses paddings set differently in IE6/7
*/

details, details,
menu, menu,
ol, ol,
ul { ul {
padding: 0 0 0 40px; padding: 0 0 0 40px;
} }


dd { /*
margin: 0 0 0 40px; * Corrects list images handled incorrectly in IE7
} */


nav ul, nav ul,
nav ol { nav ol {
Expand Down

0 comments on commit e469f75

Please sign in to comment.