Results 1 to 2 of 2
Thread: Dropdown menu best practice...
Jun 11, 2011, 19:01 #1
- Join Date
- Jun 2008
- Rockford, IL
- 22 Post(s)
- 0 Thread(s)
Dropdown menu best practice...
Is there a way to mark a an LI that CONTAINS a UL w/o deliberately adding a class or ID to it?
I have a multi-level collapsing menu. Some of the the levels sub have sub-levels and I think it would be a good UI practice to indicate that somehow. Because I try to write lean code and because there was actual no page for a header level ( a level with sub-levels) to go to directly, there is no anchor tag as a direct child of the UL, not that I think it would matter for what I am asking.
Suggestions appreciated, as always.Tips for better/ faster SitePoint forum answers
Brilliant ideas, elegant execution.
Graphic Design, Art Direction, Copywriting and Web Design.
Jun 11, 2011, 23:54 #2
If I understand you right, you're essentially looking for some kind of parent selector? E.g., if LI is a parent of UL then apply some styling?
As far as I know there's no way of doing that with CSS, but I know there are more expert CSS people here.