I know there are plenty of questions about this already I have been through them and the answers dont solve my problem.
I have made a CSS drop down menu and it works in chrome and firefox. But when I check it in IE the drop down menu disappears. When you hover over the top menu the drop down appears, then as soon as you try and move the cursor down to the drop down menu it disappears.
I cant show you the website as it isnt live yet but here is the HTML and CSS.
#nav{
margin-top:15px;
z-index: 100;
}
#nav ul{
margin:0;
padding:0;
list-style: none;
font-family: Arial, Verdana;
z-index: 100;
}
#nav ul li{
display:block;
margin-right:10px;
float:left;
position: relative;
z-index: 100;
}
#nav li.end{
margin-right:0px;
}
#nav li ul {
display: none;
}
#nav ul li a {
display: block;
text-decoration: none;
white-space: nowrap;
padding:0;
margin:0;
}
ul li a:hover {
background-color: #814b97;
}
#nav li:hover ul {
display: block;
position: absolute;
}
#nav li:hover li {
float: none;
font-size: 11px;
}
#nav img{
border:none;
}
li:hover a {
background: #617F8A;
}
li:hover li a:hover {
background: #95A9B1;
}
And the HTML
<div id="nav">
<ul>
<li><a href="#.asp"><img src="images/nav-home.jpg"></a></li>
<li><a href="#.asp"><img src="images/nav-products.jpg"></a>
<ul>
<li><a href="#">Safety</a></li>
<li><a href="#">Power</a></li>
<li><a href="#">Sensors</a></li>
<li><a href="#">Logic</a></li>
<li><a href="#">Connection Devices</a></li>
<li><a href="#">Operator Interface</a></li>
</ul>
</li>
<li><a href="#.asp"><img src="images/nav-faq.jpg"></a></li>
<li><a href="#.asp"><img src="images/nav-contact.jpg"></a></li>
<li class="end"><a href="#.asp"><img src="images/nav-delivery.jpg"></a></li>
</ul>
</div>
The Version I am using is IE9