Submenu background color not loading

More
12 years 8 months ago - 12 years 8 months ago #17815 by m3communication
Greetings,

i got a kind of urgent problem.
If i set my div container which holds the maximenuCK to "display:none" on pageload it wont load the background color for the submenus.
I need to only show the menu when i click on the "Menü" Button.

dev.m3-communication.de/lunow-upgrade/jupgrade/

If i dont use this function then everything works fine.

Any ideas? Please i need help :-)

Thanks in advance!
Last edit: 12 years 8 months ago by m3communication.

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #17817 by ced1870
Hi
I don't see it in action on your website
CEd

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #17818 by m3communication
tried couple things...
should be now as described

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #17819 by ced1870
ok
give me the code that you use to make this (height:0 somewhere ? )

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago - 12 years 8 months ago #17820 by m3communication
thats the js for toggling the menu div
Code:
$('#menubutton').click(function() { if($('#mainmenu').css('display') == 'none'){ $('#mainmenu').css('display', 'block'); }else{ $('#mainmenu').css('display', 'none'); } return false; });

thats the div containing the menu
Code:
<div id="mainmenu"><jdoc:include type="modules" name="position-1" /></div>

and thats the css definition
Code:
#mainmenu{ display:none; }
Last edit: 12 years 8 months ago by ced1870.

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #17821 by ced1870
I think that the problem is because the menu is not "shown", then the submenu have not height properties.
if you edit the parent items in the menu manager, you can force the submenu height using the maximenu params options, try that

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.193 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 895 guests and one member online