Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Z-index and DropDownList control

Status
Not open for further replies.

ksbrace

Programmer
May 13, 2000
501
US
Hello,
I'm trying to display a pop-up DIV but no matter what I set the z-index to, I can't get it to lay over the dropdownlist controls. It covers a asp:button and asp:textbox just fine, but it will not lay over a dropdownlist control. Has anyone encountered this situation and resolved it? I have also tried setting the dropdownlist controls order to "Send TO Back" under Format in visual studio. Thanks in advance!


 
Hey KS,

I've experienced the same thing. I think its just a bug in the designer (which hopefully will be fixed in the next version...hopefully...although I use VS.NET2k3 here at work, and I think this was an issue back in the first release of VS.NET).

The good news is that if you actually run your page, the ddl acts the way you want it to: if your div tag is shown, the ddl is hidden behind it.

If its really annoying you, one alternative would be to have the DIV tag set in a different area of the page, and then set its location in your page load by changing the:

control.style.add(Top, value)
control.style.add(Left, value)

In some of my pages that have alot of different panels and divs, I have them all over the place on my page so they don't overlap when I'm designing them, but move them at run time so they display all nice and pretty-like.

hth

D'Arcy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top