469,913 Members | 2,648 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,913 developers. It's quick & easy.

DIV problem

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
Nov 17 '05 #1
6 6887
Ram
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

"Kekec" <sl*********@hotmail.com> wrote in message news:<#w**************@TK2MSFTNGP10.phx.gbl>...
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

Nov 17 '05 #2
PJ
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[i].style.display = "none";
// time of showing
for ( int i = 0; controlsToHide.length; i++ )
controlsToHide[i].style.display = "inline"; // or "block" as appropriate

"Kekec" <sl*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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

Nov 17 '05 #3
Ram
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

"Kekec" <sl*********@hotmail.com> wrote in message news:<#w**************@TK2MSFTNGP10.phx.gbl>...
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

Nov 17 '05 #4
tnx ! I'll try your code!
"PJ" <pj*********@hotmail.com> wrote in message
news:Og**************@TK2MSFTNGP12.phx.gbl...
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[i].style.display = "none";
// time of showing
for ( int i = 0; controlsToHide.length; i++ )
controlsToHide[i].style.display = "inline"; // or "block" as appropriate
"Kekec" <sl*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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


Nov 17 '05 #5
PJ
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[i].style.display = "none";
// time of showing
for ( int i = 0; controlsToHide.length; i++ )
controlsToHide[i].style.display = "inline"; // or "block" as appropriate

"Kekec" <sl*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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

Nov 17 '05 #6
tnx ! I'll try your code!
"PJ" <pj*********@hotmail.com> wrote in message
news:Og**************@TK2MSFTNGP12.phx.gbl...
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[i].style.display = "none";
// time of showing
for ( int i = 0; controlsToHide.length; i++ )
controlsToHide[i].style.display = "inline"; // or "block" as appropriate
"Kekec" <sl*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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


Nov 17 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Kostatus | last post: by
117 posts views Thread by Peter Olcott | last post: by
18 posts views Thread by Ian Stanley | last post: by
28 posts views Thread by Jon Davis | last post: by
6 posts views Thread by Ammar | last post: by
2 posts views Thread by Mike Collins | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.