Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 451773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:00:12+00:00 2026-05-12T22:00:12+00:00

If you look at Sample 1 on this page , you will see that,

  • 0

If you look at Sample 1 on this page, you will see that, when you hover over the folder entries, the text turns red, but not if you hover over the leaf entries. I would like the styling for the leaf entries to work the same way as the folder entries.

Each branch of the tree is an unordered list. The leaf entries are list items <li>. I have tried styling the hover attribute for list items, and have played around with hover styling for other parts of the DOM, but it either doesn’t work at all, or it will style the entire branch of the tree (the text for the folder and all leaf items turns red).

Is there a way to make this work, so that it will change the text color for any individual item in the tree that I hover over, including the leaf nodes?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T22:00:12+00:00Added an answer on May 12, 2026 at 10:00 pm

    I’m not sure I have my head wrapped completely around it, but it is clear from looking at the jQuery treeview code that the author is treating folder nodes differently from file nodes.

    I solved the problem by wrapping the text of each file node in an <a> tag, which will serve my purpose well because these are all ultimately supposed to be links anyway. This allows me to style them thusly:

    .treeview a:link { }
    .treeview a:visited { }
    .treeview a:hover { }
    

    In a way, this is kinda cool, since it allows me to apply slightly different hover styles to the file nodes and folder nodes if I wish.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Look at this image: alt text http://img139.imageshack.us/img139/4488/picture2ep3.png I know how to add UITableView with
Hii, I am creating a WPF aplication. My home page will look like the
I'm experimenting with this sample page on jsbin: http://jsbin.com/igeca4/edit The height right now is
I need to add this kind of feature to a site that will preview
I am trying to get a simple page up that will have four links
Have a look a this simple example. I don't quite understand why o1 prints
Have a look at this very simple example WPF program: <Window x:Class=WpfApplication1.Window1 xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml
I've had a look at the metronome sample given by Apple, however, the sample
What would a simple unit test look like to confirm that a certain controller
Look at this situation: www.websitea.com displays an img tag with a src attribute of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.