Results 1 to 4 of 4

Thread: jQuery TreeView Menu - Setting Hover color

  1. #1
    Join Date
    Dec 2007
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default jQuery TreeView Menu - Setting Hover color

    1) Script Title: jQuery TreeView Menu (v1.4)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...view/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.
    Code:
    .treeview li .hover{ color: #D05C18; font-style: italic; cursor: pointer; }
    Thanks for your help.
    Last edited by Snookerman; 05-09-2009 at 05:46 PM. Reason: added “Resolved” prefix

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Try this:
    Code:
    .treeview li:hover span { color: #D05C18; font-style: italic; cursor: pointer; }
    Good luck!

  3. The Following User Says Thank You to Snookerman For This Useful Post:

    echaland (05-09-2009)

  4. #3
    Join Date
    Dec 2007
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks that works perfectly!

  5. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You're welcome, glad to help you.

    Happy coding!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •