The second and third are a way of achieving what I need. Calling it a parent in the third example was a mistake, but if I can target this 'outer <li>' with a class (like li.activeparent ul) it will work.
What you desribe is actually the same as what I want:
1) the current level highlighted (as is done now with activeclass)
2) the outer <li> highlighted (with a new to be introduced class)
Ideally, this would happen for every level up. An example of this behaviour (NOT with correct CSS implementation, but to show what I mean) is here: http://www.netherlandsembassy.cz/en/index.html
Example:
Code: Select all
<ul>
<li>1 ***visible list element
<ul>
<li>1.1</li> ***drop down list element
</ul></li>
<li>2<ul class='activeparent'> ***visible list element (would normally be hidden, but as this node contains the active element it must be visible)
<li>2.1</li> ***visible list element
<li class='activeclass'>2.2</li> ****visible list element ACTIVE
</ul></li>
<li>3 ***visible list element
<ul>
<li>3.1</li> ***drop down list element
</ul></li>
</ul>