using the suckerfish menus as a starting point, i'm trying to work out a navigation structure where nested lists stay expanded if they contain active list items.
see http://dansmithdev.com/test/ this is working pretty much as i'd like -- the menu is 'open' and shows the 'route' through the menu to the page we're on. at the moment i'm achieving this by giving the <ul>'s that contain the active list items an active class of their own, and then expanding them with a line in the CSS. e.g. <ul class="active"> <li>One</li> <li class="active">Two</li> <li>Three</li> </ul> #nav ul.active { left: auto; } however, the CMS i'm using (Drupal) doesn't seem easily to allow the addition of an active class to a <ul> tag -- or not without rummaging around in the PHP templating. my question is, can i select the <ul> with reference to an active <li> it contains. e.g. <ul> <li>One</li> <li class="active">Two</li> <li>Three</li> </ul> #nav ??? .active { left: auto; } i suspect this is either impossible or very simple, but i've ground to halt. any advice very gratefully received. many thanks dan __________________________________________________________ Sent from Yahoo! - the World's favourite mail http://uk.mail.yahoo.com ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
