Active class not showing
-
Hi, I’ve been working on this issue for longer that I want to admit. I simply want to have the hover and active state be the same on the main nav bar. Here’s my code.
/**** Main Menu ****/
#sidebar ul.navlist {
display: block;
clear: both;
margin: 0;
padding: 0;
list-style-type: none;
width: 268px;
font-size: 16px;
}#sidebar ul.navlist li {
display: inline;
line-height: 0px;/* fix the unwanted gap between li elements in FF */
}#sidebar ul.navlist li a {
display: block;
height: 30px;
line-height: 30px;
color: white;
padding: 2px 2px 2px 24px;
text-decoration: none;
border-top: 1px solid #705A52;
border-bottom: 1px solid #3E322D;
}#sidebar ul.navlist a:hover, #sidebar ul.navlist current_page_item a{
color: #877065;
background-color: #443833;
border-bottom: 1px solid #3E322D;
}#sidebar ul.navlist li a.noborder, #sidebar ul.navlist li a:hover.noborder {
border-bottom: none;
}/*Sub pages in main nav*/
#sidebar ul.navlist ul ul li a{
margin-left:20px;
display:block;
border:none
}#sidebar ul.navlist ul ul li a:hover {
border:none
}#sidebar ul.navlist ul ul li a.noborder, #sidebar ul.navlist ul ul li a:hover.noborder {
border-bottom: none;
}/*Sub sub pages in main nav*/
#sidebar ul.navlist ul ul ul li a{
display:block;
margin-left:40px;
border:none
}The hover state works fine but not the active where I’m using the current_page_item class. Help!!! (and thanks)
- The topic ‘Active class not showing’ is closed to new replies.