Click to See Complete Forum and Search --> : Z-index doesn't work on objects?


Chrisi
07-31-2003, 09:18 AM
Hi!
I want to place a <table> in front of an <object>. I set the z-index of the table to 2 and the object's to 1 but the object is still in front of the table.
Do you know how to solve this problem?
thx in advance
Chrisi

P.S.: Both, table & object are position: absolute;

boojum
07-31-2003, 03:45 PM
i believe objects usually have properties of windows. z-index only works within a window, not among them as they arent html documents. from my limited experiences, ie renders objects above the html element always

AdamGundry
08-01-2003, 02:39 AM
Yes, this applies to certain form elements (such as <select>), and most plugins/objects. The only workaround I know of is to hide the object manually when something covers it - see this article (http://www.webreference.com/programming/javascript/form/) for more details.

Adam

Chrisi
08-01-2003, 02:58 AM
Thanks for your answer
I got to say that this was what I was afraid of. Because the object is much bigger than the table .. which means hiding it is not a very effective way :/