Z-index not working for Embed Code

Posted by saorabh on Stack Overflow See other posts from Stack Overflow or by saorabh
Published on 2010-05-06T08:07:17Z Indexed on 2010/05/06 8:18 UTC
Read the original article Hit count: 307

Filed under:
|
|

While scrolling my web page a DIV which have a video is not going behind the top DIV. On my web page a top DIV,which have folloing css styling

#header{
font-size:11px;
height:25px;
position:fixed;
top:0;
width:960px;
z-index:1000;
}

Now after clearing all floated element,I added a video on a wrapper DIV like same as this way..

<div id="vedio">
<object>video code</object>
</div>

Applying CSS

#vedio{
position:relative;
text-align:center;
z-index:0;
}

After doing all stuff video is not going behind header.Please Someone Help me out. Thank you

© Stack Overflow or respective owner

Related posts about html

Related posts about css