jone 0

I'm using superfish menu on drupal 7

and i have created this menu but i can't find and change the sub-menus font color to make it deferent from the parent font-color.

how can i change that?

edit: demo: Removed

it is solved

  • @danwellman I'm working on localhost but the superfish demo is here: http://users.tpg.com.au/j_birch/plugins/superfish/#sample4 I thought the style css help. jone about 8 years ago

1 answer

danwellman 5600
2
points

You need to override the selector that gives the submenu links their color, which is this:

.sf-menu a, .sf-menu a:visited

so to target just the submenu links and not their parents, something like this should do it:

.sf-menu li ul a, .sf-menu li ul a:visited
Answered about 8 years ago by danwellman
  • Great!!! I spent more than a weak to fix this and i asked this on stackoverflow and drupal stackexchange but no one can give the answer. danwellman Thank you so much!! one more question the sub-nav color now changed but the active one doesn't http://img638.imageshack.us/i/menuil.png/ how can i change that? jone about 8 years ago
  • @danwellman do i have create a new class for that? how can fix that? jone about 8 years ago
  • For the top-level links you probably want to use .sf-menu a:active but the submenu links will pick that up to so use .sf-menu li ul a:active if you need to override it danwellman about 8 years ago
  • @danwellman I already tried that but nothing is changed for more info here is my style css: http://paste.ubuntu.com/602758/ jone about 8 years ago
  • @jone, if you liked the answer that much, why not vote it up as a great answer or set it as the correct answer... the points are why we all do this. Show some love. +1 Abinadi Ayerdis about 8 years ago
  • @Abinadi Ayerdis ohhh.. thank you! i thought i already accepted the answer thank you for reminding me. bay the way we didn't finished yet there is one issue like you see our discussion. jone about 8 years ago
  • Is there a link to a demo/staging site? It's much easy to debug CSS in Firebug ;) danwellman about 8 years ago
  • @danwellman I'm working on localhost but the superfish demo is here: http://users.tpg.com.au/j_birch/plugins/superfish/#sample4 I thought the style css help this one: http://paste.ubuntu.com/602758/ jone about 8 years ago
  • @danwellman I have included the demo on the main question jone about 8 years ago
  • @danwellman I really appreciate your help it is fixed now! Thank you! jone about 8 years ago
  • No problem, glad to help danwellman about 8 years ago