[themes] Theming Nice Menus with Graphics

sebastian inforazor at gmail.com
Fri May 7 16:35:59 UTC 2010


Hello,

A similar problem like this I was able to solve without adding any new 
css class/id's to the menu system; but it was a pain. Basically if you 
define a bg image for the top level, but dont want it on the subsequent 
ones, you can do this by assigning the bg image to the first level, and 
then adding the necessary li or ul tags to the subsequent levels and 
explicitly remove it. It's really poor css in terms of clarity, but it 
does work.

example: [i am using tags/terms that probably do not occur in the menu]

#mycutemenu li.active {
	background:url('../img/something.jpg');
}

#mycutemenu li li.active {
	background:none;
}

#mycutemenu li li li.active {
	background:none;
}

so it's a hack, but it may help you! hope so,

good luck,

sebastian.

Rebecca Macaulay wrote:
> Excuse me Jason,
> 
> This particular task is quite difficult and have known many themers who 
> have had an exceptionally hard time doing the very task about which I am 
> asking. The Nice Menu project page 
> <http://drupal.org/project/nice_menus> itself specifically referred me 
> to this mailing list to ask questions about theming Nice Menus. If you 
> have a problem with that referral, you should directly take it up with 
> Addison Berry; otherwise, I would suggest filtering these "exceedingly 
> stupid" questions yourself.
> 
> Good day.
> 
> Rebecca
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> themes mailing list
> themes at drupal.org
> http://lists.drupal.org/mailman/listinfo/themes


More information about the themes mailing list