Solved

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

Posted on 2007-04-03
3
461 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

760 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

25 Experts available now in Live!

Get 1:1 Help Now