PDA

View Full Version : Z-index?



kenny724
07 Apr 2010, 02:13 PM
Hey, everybody. Can someone tell me why the z-index isn't working like it should. I'm not able to concentrate right now. You can see the swf file is above the time/date and the kitco quote box. Thanks.

Wickham
08 Apr 2010, 02:03 AM
Make sure that the div which has the time/date has position: relative; z-index: 1;

and (possibly but not always necessary) the div or object tag with the swf file has position: relataive; z-index: -1;

Make sure the swf object tag has
<param name="wmode" value="transparent"/>
into the object tag and
wmode="transparent"
into the embed tag.

Position: relative is needed to make the z-index work.