Is there a way I can make a div appear on top of everything else no matter what, in both Firefox and IE?
I've got a flash animation that loads into a div when an image is clicked. On firefox, it appears over the top of most, but not all other divs. In IE, it appears under more layers.
I'm using wmode transparency.
Setting z-index appears to have no effect whatsoever.
People succeed in answering Adam Thorsen's questions 46% of the time (24 successes in 52 attempts).
Answers by: Zachary Holt
Hi Adam,
z-index won't have any effect unless you position the div, too. So something like the following should do the trick:
position: absolute; left: 100px; top: 100px; z-index: 1000;
Cheers.
Thanks for the answer Zach. Don't have a complete solution yet -- SWFObject does layering of multiple swf objects in a way I don't yet understand.
The solution wrt divs in IE was to make the div on the right covering the div on the left have a negative z-index (giving the div on the right a high z-index had no effect whatsoever in IE).
Hi. I answered the question you asked.
My bad. I should have rephrased the question after I understood the problem better.