javascript Context menu and asp:Listbox problem

RedLeader

Freshman
Joined
Mar 8, 2005
Messages
25
Location
Bugaria
Hi,
I have a javascript context menu (Div element). When try to popup menu over asp:ListBox or HTML <SELECT> element the menu stay behind and ListBox is on top of it. Is this some kind of IE bug?
Thank you.
 
IE bug!

Yes this is an Internet Explorer bug:

CSS Properties

Internet Explorer 5.0+
SELECT lists do not obey the normal z-index stacking order. Nothing can be placed "on top of" a SELECT list unless it is another SELECT list with a higher z-index. Other elements are always rendered below SELECT lists, even if they are given a higher z-index value than the SELECT. (IE4 has this behavior too, but it can't even render other SELECT lists properly with z-indexes assigned.)

In other browsers you can specify the CSS z-index so that the div element has a higher index.
 
You have to put a iframe in the same position as the select tag underneath it and this will stop the bleed-through.
 
Back
Top