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
Developer forum
E-mail notifications
dropdown menu help
Jesper Friis
Posted on 30/06/2011 13:05:20
Replies
Michael Nielsen
Posted on 30/06/2011 14:06:43
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 {}
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
Posted on 30/06/2011 15:45:18
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
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
Posted on 30/06/2011 17:41:17
thanks both of you
i'll try it out
cheers jesper
i'll try it out
cheers jesper
Rune Skovbo
Posted on 11/01/2012 11:39:46
Thanks for that file Nuno - works like a charm here :-)
/Rune
/Rune
You must be logged in to post in the forum