I have an ordered list inside which any version of Internet Explorer is picking up as 1,1,1,1 rather than 1,2,3,4. After reading up on this it would appear this happens because there is a width set on the li and you need to add 'display: list-item;' to the li for it to work - which I have tried with no result, I have also tried removing the width altogether with the same problem.
Heres my list:
<div id="nav">
<ul>
<li><a href="/">Home</a></li>
<li>
<a href="#">New Products</a>
<ol class="newProducts">
<li><a href="#"><span>Link 1</span></a></li>
<li><a href="#"><span>Link 2</span></a></li>
<li><a href="#"><span>Link 3</span></a></li>
<li><a href="#"><span>Link 4</span></a></li>
<li><a href="#"><span>Link 5</span></a></li>
<li><a href="#"><span>Link 6</span></a></li>
<li><a href="#"><span>Link 7</span></a></li>
<li><a href="#"><span>Link 8</span></a></li>
</ol>
</li>
<li><a href="news.html">News</a></li>
<li><a href="payment-and-shipping.html">Payment & Shipping</a></li>
</ul></div>
Heres my CSS:
<pre>
#nav ul, #nav ol {
position: absolute;
top: 158px;
left: 0px;
list-style: none;
text-transform: uppercase;
}
#nav ul > li {
float: left;
padding: 10px;
border-right: 2px solid #000000;
font-size: 16px;
position: relative;
}
#nav ul > li:hover {
background: url(../images/headerHover.png) bottom no-repeat;
padding-bottom: 10px;
}
#nav ul > li a {
color: #FFFFFF;
}
#nav ul > li > ol {
display: none;
}
#nav ul > li:hover ol {
margin-top: -120px;
left: 0px;
display: block;
padding-top: 7px;
list-style: decimal outside;
font-size: 10px;
color: #fdc800;
font-family: Arial, Helvetica, sans-serif;
display: block;
text-transform: none;
}
#nav ul > li:hover ol > li {
text-align: left;
padding: 0px 0px 5px 0px;
width: 240px;
border: 0px;
}
#nav ul > li:hover ol > li:hover {
background: none;
}
#nav ul > li:hover ol > li a {
color: #FFFFFF;
text-decoration: none;
}
</pre>