I am working on the navigation of a site that was already built by someone else. They have an active class for the link that the page is on, however when a last class is added to the active class link, it will only render the active link in the browser. I looked at the source code in the browser and only one of the two classes shows up. The last navigation item is the only item that has this second class. It doesn't work correctly only when the page is on the last navigation item.
I am guessing this is probably something simple I am overlooking. I appreciate any help with this.
tl:dr - I am only able to render the .last class on the last navigation item.
I apologize if the CSS is terrible. I did not write it.
site page: http://securitybank.designangler.com/insurance
css:
#navigation .MainNavigation{
position:relative;
padding:12px 0px;
margin:0px 0px 0px 8px; /* left margin Changed from 28px on 10-21-13 */
list-style:none;
}
#navigation .MainNavigation li{
display:inline;
padding:12px 0px 0px 0px;
margin:0px 0px 0px 0px;
text-align:center;
}
#navigation .MainNavigation li a{
font-size:13px;
color:#FFF;
text-decoration:none;
padding:12px 14px 12px 14px;
margin:0px 0px 0px 0px;
border-left:#648558 2px solid;
}
#navigation .MainNavigation li a.last{
border-right:#648558 2px solid;
}
#navigation .MainNavigation li a.active{
padding:12px 19px 12px 17px;
background: url(/_images/bkgd_Active.png) repeat;
}
#navigation .MainNavigation li a:hover{
background: url(../_images/bkgd_NavHover.png);
}