DIV problem

  • Thread starter Thread starter Kekec
  • Start date Start date
K

Kekec

Hi!

I have some zindex problem with DIV on my webform I have several
asp:dropdownlist controls and in some case i want to show div in middle of
that form but when I show that div every dropdownlis is above my div
element. I try to set zIndex style for div but no result. Can someone help
me with that problem!

tnx
 
Dropdown lists themselves are windows in IE browser and they have the
highest Z index. You can not show anything on top of them. Try to use
a popup window without toolbars etc.

Thanks
Ram
 
I can help you by being the messenger of bad news. There is no way to bring
an html element in front of a drop down list. Certain windows controls
always live above html block/inline elements. I use dhtml menu navigation
that overlaps with specific page drop downs and the best solution I have
found is to hide the offending controls when appropriate. The javascript I
usually use is...

// specific page javascript
var ddl = document.getElementById("ddlBadWindowsDropDown");
if ( ddl );
controlsToHide[0] = ddl;

// linked dhtml library...
var controlsToHide = new Array():
// time of hiding
for ( int i = 0; controlsToHide.length; i++ )
controlsToHide.style.display = "none";
// time of showing
for ( int i = 0; controlsToHide.length; i++ )
controlsToHide.style.display = "inline"; // or "block" as appropriate
 
tnx ! I'll try your code!


PJ said:
I can help you by being the messenger of bad news. There is no way to bring
an html element in front of a drop down list. Certain windows controls
always live above html block/inline elements. I use dhtml menu navigation
that overlaps with specific page drop downs and the best solution I have
found is to hide the offending controls when appropriate. The javascript I
usually use is...

// specific page javascript
var ddl = document.getElementById("ddlBadWindowsDropDown");
if ( ddl );
controlsToHide[0] = ddl;

// linked dhtml library...
var controlsToHide = new Array():
// time of hiding
for ( int i = 0; controlsToHide.length; i++ )
controlsToHide.style.display = "none";
// time of showing
for ( int i = 0; controlsToHide.length; i++ )
controlsToHide.style.display = "inline"; // or "block" as appropriate

Kekec said:
Hi!

I have some zindex problem with DIV on my webform I have several
asp:dropdownlist controls and in some case i want to show div in middle of
that form but when I show that div every dropdownlis is above my div
element. I try to set zIndex style for div but no result. Can someone help
me with that problem!

tnx
 
Back
Top