Developer forum

Forum » Templates » dropdown menu help

dropdown menu help

Jesper Friis
Reply
Hi
I have a dropdown menu and have 2 problems I cant figure out how to solve. I guess it's something in the LIClean.xslt I have to code but I'm still pretty green with xslt and DW so I hope someone can help me once again.

1.
I have used .inpath in my css to set a background image (a green top border) so when I click a submenu item the main menu item is selected. But the problem is that when you hover over the menu again while it's selected the submenu li tag inherits the background image. How do I remove that. I've tried with css but cant figure out how to target the li tag.
You can see the problem here: http://nyholmcantrell.net.dynamicweb-cms.com/da-DK/Galleri/Karen.aspx

2. My next problem is that in the menu where I have submenues dropping down the main menu item should'nt be clickable and should not load a emty page.

thanks
-jesper




Replies

 
Michael Nielsen
Reply
Hi Jesper

Why not set the inpath on the li tag instead of the a tag?

That way you can use this selector to target the specific submenu li.inpath ul {}

 
Nuno Aguiar
Reply
Hi Jesper,

Here's my standard xslt menu. I think it's pretty clean and let you have a lot of classes and ways to get to everywhere you need.

Best Regards,
Nuno

 
Jesper Friis
Reply
thanks both of you
i'll try it out

cheers jesper

 
Rune Skovbo
Reply
Thanks for that file Nuno - works like a charm here :-)

/Rune

 

You must be logged in to post in the forum