WebsiteBaker Support (2.8.x) > Templates, Menus & Design
show_menu2: valid XHTML and CSS selectable menus
BerndJM:
Hi,
it's 'cause you format the .menu a:link, .menu a:visited, .menu a:active with display: block in your screen.css
Regards Bernd
Peter R:
Thanks for the fast response.
I have no idea what the block was doing there. It was in the template I started with.
To be honnest, I don't even knew block excised.
Got it working now.
Thank again!
hexa86:
Hi guys, hi community,
I really appreciate your work on show_menu2, and I just use it while creating a website with website baker but I have one simple question:
I just read your documentation about it, but I was wondering if/how it is possible to address every single generated menu entry for itself. Sorry, if you don't understood me, but English is a foreign language for me :(
Why do I need this? I just want to give every entry a different color with CSS. But I have no clue how to adress the generated entries.
I use the template called "module_finder" and that's my relevant code snippet out of it:
--- Code: ---<div id="nav">
<?php show_menu2(0, SM2_ROOT, SM2_ALL, ( SM2_ALL | SM2_NUMCLASS), '<li><a href="[url]" class="[class] navlev[level]">[menu_title]</a>', "</li>", '<ul class="ullev[level]">', "</ul>", true, '<ul id="header_menu" class="menu">');
//show_menu2(0, SM2_ROOT, SM2_ALL, ( SM2_ALL | SM2_NUMCLASS), false, "\n</li>", false, false, false, '<ul id="header_menu" class="menu">'); ?><br style="clear:left;"/>
</div><!-- end nav -->
--- End code ---
at the moment I only adress all generated entries with #nav in my external css-file, because I do not know how to adress them seperately.
I'd really appreciate your help, and I hope you can tell me whether this is possible or if it is possible a different way. Thank you in advance!
greets
christoph
brofield:
I just added this entry to the FAQ. Does that help you?
http://code.jellycan.com/files/show_menu2-README.txt
Q: How do I use a different class/picture/color/widget for each entry in a menu?
B
hexa86:
Thanks for your really fast reply. That's real SUPPORT, man. I just took a short look at it, but after work I will check it out in detail, it really looks the way I can use it however.
You made my day.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version