I have made a dropdown menu wich is working fine in firefox and chrome, but in IE6, it is not working! i am typing the css code below, please any css guru, remove the bug from the given code if possible!
#nav, #nav ul {
padding: 0;
margin: 0;
list-style: none;
}
#nav li a {
font:bold 12px Tahoma, "MS Sans Serif";
color:#FFF;
display: block;
width: 135px;
height:38px;
text-align:center;
text-decoration:none;
padding:22px 0 0 0;
}
#nav li {
float: left;
width: 135px;
}
#nav li:hover {
background:url(../images/hover1.jpg) no-repeat;
float: left;
width: 135px;
}
#nav ul li:active {
background:url(../images/hover1.jpg) no-repeat 100% 0;
float: left;
width: 135px;
}
#nav li ul {
display: none;
height:auto;
position: absolute;
width: 150px;
left: -999em;
z-index: 3;
background-color:#4bcbd8;
}
#nav li:hover ul{
display:block;
height:auto;
background-color:#4bcbd8;
border:solid 1px #0d96a4;
left: auto;
text-decoration:none;
}
#nav li:hover ul a:hover{
background-color:#8be5ed;
color:#999;
left: auto;
text-decoration:none;
}
#nav li:hover ul, #nav li.sfhover ul {
left: auto;
background-color:#8be5ed;
display:block;
}