Hello hello forum!
I have trouble styling the menu, it is just not working, and I would appreciate a lot some help and explanation...
My menu code has just one id for a main UL and a class name for the child UL (drop down), it goes like this:
and there is a bit of java script, adressing that ul id and class
I tried this with menu tag:
but I no styles show up...
Then I tried with nested_menu:
But again no style shows up...
Thanks in advance, any help is appreciated
Tanja
I have trouble styling the menu, it is just not working, and I would appreciate a lot some help and explanation...
My menu code has just one id for a main UL and a class name for the child UL (drop down), it goes like this:
- Code: Select all
<ul id="mainnav">
<li><a href="#">Home</a></li>
<li><a href="#">Über uns</a></li>
<li><a href="#">Angebot</a>
<ul class="children">
<li><a href="#">Kurse</a></li>
<li><a href="#">Workshops</a></li>
<li><a href="#">Intensivcoaching</a></li>
<li><a href="#">Mentoring</a></li>
</ul>
</li>
<li><a href="#">Anmeldung</a></li>
<li><a href="#">Kooperationen</a></li>
</ul>
and there is a bit of java script, adressing that ul id and class
- Code: Select all
<script>
$(document).ready(function(){
$('ul#mainnav li').hover( function(){
$(this).addClass('hover');
$( 'ul.children', this ).css('visibility', 'visible');
}, function(){
$(this).removeClass('hover');
$( 'ul.children', this ).css('visibility', 'hidden');
});
});
</script>
I tried this with menu tag:
- Code: Select all
<cms:menu masterpage='menu/robertaMENU.php' menu_id='mainnav' menu_class='children'/>
but I no styles show up...
Then I tried with nested_menu:
- Code: Select all
<cms:nested_pages masterpage=masterpage='menu/robertaMENU.php' extended_info='1' >
<cms:if k_level_start >
<cms:if k_level='0'>
<ul id="mainnav">
<cms:else />
<ul class="children">
</cms:if>
</cms:if>
<cms:if k_element_start >
<li id="item-<cms:show k_nestedpage_name />" class="level-<cms:show k_level/><cms:if k_total_children> has-submenu</cms:if><cms:if k_first_child> first</cms:if><cms:if k_last_child> last</cms:if><cms:if k_is_active> active</cms:if><cms:if k_is_current> current</cms:if>">
<a href="<cms:show k_menu_link />"><cms:show k_menu_title /></a>
</cms:if>
<cms:if k_element_end ></li></cms:if>
<cms:if k_level_end ></ul></cms:if>
</cms:nested_pages>
But again no style shows up...
Thanks in advance, any help is appreciated
Tanja