Solution (Clean Solution)
Date of the Solution
Sat Jul 18 13:01:23 2009
Fixed Versions
all of the affected
Description
What IE is doing, the way I see it, is the bullets are on ' element"><li>
s and they are sticking out of ' element"><ol>
/' element"><ul>
... when the ' element"><ol>
/' element"><ul>
get "layout" the bullets are no longer drawn. Let's take a look at the fixed demo and I'll explain what I did:
- HTML Code:
<ul>
<li>Foo</li>
<li>Bar</li>
<li>Baz</li>
</ul>
<ol>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ol>
- CSS Code:
ul, ol {
width: 500px;
}
li {
margin-left: 2em;
}
Now, all I did is move the margin-left
from ' element"><ol>
/' element"><ul>
to the ' element"><li>
element and now bullets/numbers show up just fine.
The 2em
value is not a magic number, but something I just made up on the spot; if it looks off to you, play around with it.
Note: if your margins are all zeroed out, all you need to do is set margin-left
on the ' element"><li>
and then use the same value - except negative - for margin-left
on the ' element"><ol>
/' element"><ul>
:
ul, ol {
width: 500px;
margin-left: -2em;
}
li {
margin-left: 2em;
}