Make sure to add the following to your CSS:
#nav li a span.top-nav-parent {
background: url(images/nav/MPSC_tabs2.jpg) 100% 0;
display: block;
line-height: 32px;
padding-right: 9px;
padding-top: 13px;
}
If you are using SPAN
as a block element, consider changing the display property to inline-block
.
Here's how you can do it:
#nav li a span.top-nav-parent {
background: url(images/nav/MPSC_tabs2.jpg) 100% 0;
display: inline-block;
line-height: 32px;
padding-right: 9px;
padding-top: 13px;
}
This adjustment will prevent the .top-current
class from affecting the rest of the menu navigation.
Additionally, it seems like the stylesheet is being linked twice:
<link rel="stylesheet" href="style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
Removing one instance of this link will help reduce unnecessary code duplication.