Hi all
I have a problem in IE6, I have a vertical menu and when the user hovers over it the selected menu item changes colour and once selected stays that colour.
However in IE6 when the page is loaded the colour is already applied to the menu items(all of them).
Can anyone see my error?
I have a problem in IE6, I have a vertical menu and when the user hovers over it the selected menu item changes colour and once selected stays that colour.
However in IE6 when the page is loaded the colour is already applied to the menu items(all of them).
Can anyone see my error?
Code:
#SideNav{
width: 180px;
margin-top: 10px;
float: left;
margin-right: 10px;
}
#SideNav p{
color: #598D98;
font-weight: bold;
margin-bottom: 5px;
}
#SideNav ul{
list-style: none;
margin: 0 0 0 -5px;
padding: 0;
}
#SideNav ul li{
width: 100%;
}
#SideNav ul li a{
color: #666;
height: 15px;
width: 180px;
text-decoration: none;
font-weight: normal;
background-color: #FFF;
display:block;
padding: 5px;
}
#SideNav ul li a:hover, #SideNav ul li a.selected{
color: #FFF;
height: 15px;
width: 180px;
text-decoration: none;
font-weight:bold;
display:block;
padding: 5px;
}
#SideNav ul li a:hover.Blue, #SideNav ul li a.selected.Blue{
background-color: #3399FF;
}
#SideNav ul li a:hover.Green, #SideNav ul li a.selected.Green{
background-color: #4BB47A;
}
#SideNav ul li a:hover.Orange, #SideNav ul li a.selected.Orange{
background-color: #CE9638;
}
#SideNav ul li a:hover.Orange2, #SideNav ul li a.selected.Orange2{
background-color: #B86C48;
}
#SideNav ul li a:hover.Pink, #SideNav ul li a.selected.Pink{
background-color: #B82A59;
}
#SideNav ul li a:hover.Purple, #SideNav ul li a.selected.Purple{
background-color: #94779F;
}
#SideNav ul li a:hover.Default, #SideNav ul li a.selected.Default{
background-color: #598D9A;
}