Sub menu hide behind dropdown menu

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
marchmirchi
Forum Newbie
Posts: 1
Joined: Fri Aug 04, 2006 11:32 pm

Sub menu hide behind dropdown menu

Post by marchmirchi »

Hi!

I have vertical menu in my page and it has sub menu also. the menu work perfectly on all pages but whenever a page contain a dropdown menu in the middle of the page the sub hide behind the dropdown. here with am attaching the screen shot of this problem.


Image
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

That is a result of how the browser handles the layering of those menus. That is a common problem and I am not sure there is a fix for it, other than changing the styles on the <div> tag that generates the menus. I think.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

Moved to Clientside.
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

I've never had that problem.

Try messing around with z-indexes.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The dropdowns are drawn last, always. The only fix I've heard of is putting the dropdown into an iframe by itself if you're sticking with native ones. I haven't tried it, so for whatever that's worth. An alternative is making your own dropdowns with DHTML.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I think you can avoid this issue using CSS based menus. I think.
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

Not using CSS?

I missed that.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I think the OP is using javascript to generate the menus.
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

Well..

Javascript menus == past
asgerhallas
Forum Commoner
Posts: 80
Joined: Tue Mar 14, 2006 11:11 am
Location: Århus, Denmark

Post by asgerhallas »

It can be fixed with iframe-layer. Just dynamically create an Iframe underneath your menu-layer, and then size it - it will cover the windows controls.

Here's a link...: http://www.wwwcoder.com/main/parentid/3 ... fault.aspx

Hope that'll help...

/Asger
Post Reply