Solved

ASP.NET 2.0 Menu control - dropdown items hidden under other page controls

Posted on 2007-04-03
3
462 Views
Last Modified: 2008-03-03
Surely I can't be the only one to experience this...  I have a menu control on the top of my page, which has submenu items dropping down off the main items.  The problem is, when I try to select one of the submenu items, it becomes hidden underneath another control on the page.  Any way that I can make the menu stay on the top of everything else?
As an extra, some of my menus, when rendered, show up in red letters when I specified them to be blue.  

Any ideas?
0
Comment
Question by:adwooley2
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
jinn_hnnl earned 500 total points
ID: 18848950
can you paste a part of your menu source code ?...

Anyway, If you place your menu in Master page (most of ppl does) this problem will be gone. Or else, put your menu in a <div> and set the z-order as big as you thing it fit (the bigger, the closer to the screen)

<div style="z-order:10">
      <asp:Menu ... your menu>
</div>

The color thing, I guess you set the wrong property (cause if you select auto format there will be generated code for static and dynamic menu items, blah blah), may be you modified wrong property

Hope this help

JINN ^^
0
 

Author Comment

by:adwooley2
ID: 18849006
I gave that <div> thing a try, but it didn't work.  Thanks for the thought though.  I had the menu control in a user control.... THAT what caused the problem.
0
 
LVL 10

Expert Comment

by:jinn_hnnl
ID: 18849718
ohh I think I made it in not enough infor way: it should be z-index, instead of z-order.

<div style="z-index:10; position:relative">
      <asp:Menu ... your menu>
</div>

The z-index only worNote: Z-index only works on elements that have been positioned (eg position:absolute;)... it's nice to know when you wanna do something concerning about stack order.

Anyway, gj you got it yourself ^^.

Thanks for the credit ^^

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now