z-index not working

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

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.
 
Hi Paul,

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

Regards,
Manish
 
Back
Top