473,404 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

z-index not working

Hi I have a menu contol on a master page and some dropdown boxes and text
boxes on another page that gets loaded into the place holder of the master
page.
The dropdown menu on the master page covers the dropdown list boxes on the
page that gets loaded in but does not cover the textboxes like it should. I
tried setting the zindex but it seemed to have no effect.

on the master page
<td class="MainMenu" style="z-index :100; width: 871px; position :relative;
" >
<asp:Menu ID="mnuMain" runat="server"
CssClass="QuickViewMenu"

for the textbox on the page that gets loaded in.

<asp:TextBox ID="txbx_username" style="z-index :0; position :relative "
runat="server" Width="369px">
any ideas?
thanks.
--
Paul G
Software engineer.
Jun 27 '08 #1
2 3491
Hi Paul,

Z-index only works on elements that have been positioned (eg
position:absolute;).

Regards,
Manish

"Paul" wrote:
Hi I have a menu contol on a master page and some dropdown boxes and text
boxes on another page that gets loaded into the place holder of the master
page.
The dropdown menu on the master page covers the dropdown list boxes on the
page that gets loaded in but does not cover the textboxes like it should. I
tried setting the zindex but it seemed to have no effect.

on the master page
<td class="MainMenu" style="z-index :100; width: 871px; position :relative;
" >
<asp:Menu ID="mnuMain" runat="server"
CssClass="QuickViewMenu"

for the textbox on the page that gets loaded in.

<asp:TextBox ID="txbx_username" style="z-index :0; position :relative "
runat="server" Width="369px">
any ideas?
thanks.
--
Paul G
Software engineer.
Jun 27 '08 #2
ok thanks, seems to be working now!
--
Paul G
Software engineer.
"Manish" wrote:
Hi Paul,

Z-index only works on elements that have been positioned (eg
position:absolute;).

Regards,
Manish

"Paul" wrote:
Hi I have a menu contol on a master page and some dropdown boxes and text
boxes on another page that gets loaded into the place holder of the master
page.
The dropdown menu on the master page covers the dropdown list boxes on the
page that gets loaded in but does not cover the textboxes like it should. I
tried setting the zindex but it seemed to have no effect.

on the master page
<td class="MainMenu" style="z-index :100; width: 871px; position :relative;
" >
<asp:Menu ID="mnuMain" runat="server"
CssClass="QuickViewMenu"

for the textbox on the page that gets loaded in.

<asp:TextBox ID="txbx_username" style="z-index :0; position :relative "
runat="server" Width="369px">
any ideas?
thanks.
--
Paul G
Software engineer.
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: JohnDpatriot | last post by:
After installing XP SP2 on my machine, I continually get the Script Error permission denied when I attempt to adjust the Zindex of an object on the page . see below ...
22
by: DJ WIce | last post by:
Hi, I'm looking for a script to get the hi-est z-index on a page. I want my javascript menu to be always on top of the page (moves along on top when you scroll down). Does anyone know how to...
5
by: Razzbar | last post by:
I'm using a div as a floating dialog box. I'd rather use a popup window, but due to all the popup blockers in use, I have to use another method, a div that has absolute positioning. The damn...
1
by: Sabbaath | last post by:
But haven't really found anything that answers the issue. Basically, I have a js function that has these lines in it, among others: var navSectionBg = document.getElementById("mainNav_" +...
26
by: Jenitha S | last post by:
Hi, I am working in JSP code.A Menubar is displayed in JSP page.It's working fine in IE. But in case of firefox the very first menuitem is not working.If i move that menu item as second means it's...
2
by: zz2uk1 | last post by:
Im trying to show a text box above a div in a simple webpage. Im viewing in IE 7 and Chrome and the text box is always below the div, although I have set the zIndex fairly high. I have included...
1
Claus Mygind
by: Claus Mygind | last post by:
How come I can set this style element document.getElementById("popTime").style.left = "0px"; but not this document.getElementById("freqJobDiv").style.zIndex = "20"; I have two nested...
1
by: bob2044 | last post by:
offsetHeight is not working in following code <script type="text/javascript"> function Coverdiv() { var standard=(document.compatMode=="CSS1Compat") ? document.documentElement:document.body;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.