PDA

View Full Version : Resolved jQuery TreeView Menu - Setting Hover color



echaland
05-08-2009, 09:59 PM
1) Script Title: jQuery TreeView Menu (v1.4)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/treeview/index.htm

3) Describe problem:
I've installed the jquery TreeView. I'm having an issue when I want to style a menu item which doesn't contain any sub-item. I cannot set the color item when I hover.
The css below only change the hover color if the menu has sub-menu but it doesn't work if the menu has no sub-menu.

.treeview li .hover{ color: #D05C18; font-style: italic; cursor: pointer; }
Thanks for your help.

Snookerman
05-09-2009, 05:45 AM
Try this:

.treeview li:hover span { color: #D05C18; font-style: italic; cursor: pointer; }

Good luck!

echaland
05-09-2009, 05:35 PM
Thanks that works perfectly!

Snookerman
05-09-2009, 05:39 PM
You're welcome, glad to help you.

Happy coding!