I have a navigation bar that has image dividers, and when you rollover the links change color. I would like the rollover color to cover the dividers, but it stops before them and looks weird. Example: http://stsh.me/2PD
As you can see, the divider image is still showing up on the right side. How do I cover them in css? Do I need js? What I have:
.navigation ul{
width: 600px;
float: right;
margin: 0px;
border-left: solid 25px #a34699;
background-color: #c3bf36;
padding: 0;
}
.nav li{
float: left;
background: url(../images/nav_divider.png) center left no-repeat;
text-align: center;
position: relative;
}
.nav a{
color: #fff;
text-decoration: none;
display: block;
font-size: 13pt;
padding: 4px 23px 4px;
}
.nav a:hover{
color: #636466;
}
.nav li:hover{
background: #4dd1e5;
list-style-image: none;
list-style-type: none;
position: relative;
z-index: 999;
}
Thank you!