
Originally Posted by
elliot
The problem is the selector:
Code:
#wrap #menu .selected a:hover
This pattern will match a hovered link, which is a descendant of an element with a class attribute that contains the word 'selected'[1]. You should change it (and could shorten it) to:
Code:
#menu a:hover.selected
Alternatively, you could modify the rule with selector
to:
Code:
#menu a.selected {
background: #3b63b3;
color: #ffffff !important;
}
and remove the two rules that follow.
Hope that helps,
Mike
[1] To continue: Which in turn is a descendant of an element with an id attribute that equals 'menu', which in turn a descendant of an element with an id attribute that equals 'wrap'.
Bookmarks