It would be a great idea to give the children elements also a class so the can be directly styled. At the moment you style a menu a item, all children get the same style and you have no chance of styling the children (expanded menu) differently

Comments

vordude’s picture

Status: Active » Postponed (maintainer needs more info)

I'm not sure I gather where you want more classes. Please explain further. I'm not against it. I just don't think I understand what you're saying.

marcoka’s picture

ok i make an example, lets say we have


<ul class="nice-menu nice-menu-down" id="nice-menu-1">

<li class="menu-316 menu-path-front even "><a href="/WORKSPACE_DRUPAL/" class="active">anfrage</a></li>

<li class="menu-313 menuparent menu-path-front odd "><a href="/WORKSPACE_DRUPAL/" class="active">baukasten-download</a>

<ul>
<li class="menu-389 menu-path-front first  odd "><a href="/WORKSPACE_DRUPAL/" class="active">List LInks</a></li>
<li class="menu-390 menu-path-front even  last "><a href="/WORKSPACE_DRUPAL/" class="active">More Links</a></li>
</ul>

</li>


</ul>

then you will never be able to style the dropdown differently from the First Layer Menus (root parents). You could use the menu-389, menu-390 classes but that is undynamic, because if you add another menu item. So the empty ul could have a class like "children" and the lis could have a class like "child-menu-item" and every root parent should have a class like "root-parent". so a better styling would be possible.

Anonymous’s picture

Yeah this is sort of important.

jenlampton’s picture

I've never had trouble styling the children differently than the parents. Here's what I usually do:

ul.nice-menu li {
  /* this is the parent item */
}
ul.nice menu ul li {
  /* this is the child item */
}
ul.nice menu ul ul li {
  /* this is the grandchild item */
}

Hope that helps :)

marcoka’s picture

Status: Postponed (maintainer needs more info) » Fixed

i think jen is right. i am advanced in css, dont know what was riding me :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.