Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keeping top menu item highlighted while in dropdown

Just putting together this site and would like the menu item with a dropdown to stay highlighted in white when you are hovering over the dropdown menu items. http://dl.dropbox.com/u/7086475/Paul%20Day/index.html

like image 812
ianbarnard Avatar asked Jan 17 '23 21:01

ianbarnard


1 Answers

Instead of using the #nav a:hover selector you can use #nav li:hover instead.

The li will remain in the hover state while you're in the submenu unlike the anchor.

It won't work in IE6 since the hover pseudo class only works on anchors.

#nav li:hover{
 color: #fff;
}
like image 136
Jamie Dixon Avatar answered Jan 19 '23 10:01

Jamie Dixon