[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

11/28/2005 at 05:39PM PST, ID: 21645791
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

parent inherit from child - sort of

Asked by CVSmarc in Cascading Style Sheets (CSS)

Tags: child, parent, from, inherit

Hi all
At the moment i am looking to make a menu system were the all the sub items of the menu are hidden (and the sub nodes appear for each node when the user clicks on the parent node just like a normal menu) but were the as the user goes from page to page i want the menu to appear open up to the particular node that represents the current page the user is on. The way in which i am identifying this selected node is by giving it an ID or class name of "selectedNode". As this node could be several layers down (i am basing the menu around nested unordered) what i would like to do is some sort of inheritance were i give the class identified by "selectedNode" display:block instead of display:none and then i somehow say that the 'ul with a child element identified by "selectedNode" is display:block instead of display:none'.

Now i know you can do this the other way around by doing something like below
    #mainMenu ul {
        display:block
    }
and what this will do is make any child element that has the parent identified by "mainMenu" display. I need to do the reverse, so in others words a parent who’s child is identified by "selectedNode" will display.

Thanks
ant

This is a snippet of what the menu structure is like

    #mainMenu ul {
        display:block
    }
       <ul id="mainMenu">
          <li>Weblog</li>
          <li>Articles
             <ul>
                <li>Red Fox</li>
                <li id="selectedNode" >Pitching Inning                  <<<< This item is the one that relates to the current page
                   <ul>
                      <li>Part I</li>
                      <li>Part II</li>
                   </ul>
                </li>
                <li>That Long</li>
             </ul>
          </li>
          <li>About</li>
          <li>Cars
             <ul>
                <li>Holden</li>
                <li>Ford</li>
             </ul>          
          </li>
       </ul>

At the moment its default view would look like            
    - Weblog
    - Articles
    - About
    - Cars


But with the way i hope i can get this inheritance to work its like the following were all i have to do is give red fox and id of selectedNode
    - Weblog
    - Articles
          - Red Fox
          - Pitching Inning
    - About
    - Cars
 
Keywords: parent inherit from child - sort of
 
Loading Advertisement...
 
[+][-]11/28/05 06:36 PM, ID: 15377226

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Cascading Style Sheets (CSS)
Tags: child, parent, from, inherit
Sign Up Now!
Solution Provided By: kibatsu
Participating Experts: 1
Solution Grade: A
 
 
[+][-]11/28/05 08:16 PM, ID: 15377601

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/01/05 04:30 PM, ID: 15401577

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/26/06 02:25 PM, ID: 15800250

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/26/06 07:42 PM, ID: 15802027

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91