This is slowly converting me to a suicidal lunatic :P
I have an ordered list with class="funkynumbers". The CSS is as follows:
ol.funkynumbers
{
list-style-type:decimal;
list-style-position:inside;
margin:0;
padding:0;
}
ol.funkynumbers li
{
font-size:42px;
padding: 10px 0px 10px 12px;
font-weight:bold;
background:url(nem/images/layout/circle_orange.gif) no-repeat 0% 10px;
color:white;
<if condition="is_browser('ie')">
vertical-align:top;
display:list-item;
</if>
min-height:30px;
}
ol.funkynumbers li div.list_content /* once IE6 usage drops significantly, ditch the class and use ol.funkynumbers li > div */
{
font-size:12px;
font-weight:normal;
color:#555;
float:right;
width:840px;
margin-top:<if condition="is_browser('ie')">5<else />-<if condition="is_browser('opera')">5<else />42</if></if>px;
}
and the markup is like that:
<ol class="funkynumbers">
<li>
<div class="list_content">blah blah blah</div>
</li>
<li>
<div class="list_content">blah blah blah</div>
</li>
<li>
<div class="list_content">blah blah blah</div>
</li>
<li>
<div class="list_content">blah blah blah</div>
</li>
<li>
<div class="list_content">blah blah blah</div>
</li>
<li>
<div class="list_content">blah blah blah</div>
</li>
</ol>
The <li> background-image hides the list markers in IE, whereas in all other browsers the list marker is in front of it, creating the desired effect.
I've searched a lot about this issue, and haven't found anything. :(
Any ideas?
Thanks in advance...
PS: The <if condition=""> syntax is a proprietary convenience of the software platform I'm using, just ignore it.