RedLeader Posted December 26, 2006 Posted December 26, 2006 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. Quote
MrPaul Posted December 27, 2006 Posted December 27, 2006 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. Quote Never trouble another for what you can do for yourself.
RedLeader Posted December 28, 2006 Author Posted December 28, 2006 Thanks MrPaul, I've tried with z-index but it's still rendered below. Quote
bri189a Posted January 7, 2007 Posted January 7, 2007 You have to put a iframe in the same position as the select tag underneath it and this will stop the bleed-through. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.