Thanks for the info
I was really hoping that there would be a way of doing it without having to use scripting. In this particular case if there is no css solution, it would have to be JavaScript, as i am generating the menu from the database on the server and i only want to generate the menu once per user session. The problem comes and the reason why i dint want to use JavaScript is because there would be a transition period between when the user sees the menu compressed and when they see it opened. If i were able to use CSS this wouldn't be a problem because the menu would be in its opened state when it was published to the page and thus there wouldn't be any resizing after the page had loaded.
Thanks again
ant
Main Topics
Browse All Topics





by: kibatsuPosted on 2005-11-28 at 18:36:12ID: 15377226
G'day,
You're describing 'Parent selectors', a really nice trick, but one that isn't currently supported by any browser. I think it was being considered for the CSS3 spec, but I don't know whether it made it in or not.
You'll have to do some scripting in order to make this work - either server side (apply the ID to the top-level parent of the selected item) or client side with JS (find the #selectedNode, loop up through the parents to find the top level, and shift the ID there.
Sorry this isn't better news! Let us know if you need more help on either of the workarounds. Good luck!