...

View Full Version : object/embed tag overlays everything even when I set positioning!



johnmerlino
11-22-2010, 08:18 PM
Hey all,

I have this:



<div class="main_image" style="position: relative">

<div class="obj" style="position: absolute; z-index:999;">
<object width="160" height="144"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="../images/Intro-1.mov">
<param name="autoplay" value="true">
<param name="controller" value="false">




<EMBED SRC="../images/Intro-1.mov" WIDTH=500 HEIGHT=380 AUTOPLAY=false CONTROLLER=true LOOP=false PLUGINSPAGE="http://www.apple.com/quicktime/"> <!-- <img src="" alt="video_1"> -->
</object>
</div>


<div class="obj">
<object width="160" height="144"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="../images/Intro-2.mov">
<param name="autoplay" value="true">
<param name="controller" value="false">
<EMBED SRC="../images/Intro-2.mov" WIDTH=500 HEIGHT=380 AUTOPLAY=false CONTROLLER=true LOOP=false PLUGINSPAGE="http://www.apple.com/quicktime/"> <!-- <img src="" alt="video_1"> -->
</object>
</div>









<div style="display: block; position: absolute; z-index: 1000;" class="desc">
<a href="#" class="collapse">Close Me!</a>
<div style="opacity: 0.85; margin-bottom: 0px; display: block;" class="block">
<h2>Video 1</h2>
<p>Autem conventio nimis quis ad, nisl secundum sed, facilisi, vicis augue regula, ratis, autem. Neo nostrud letatio aliquam validus eum quadrum, volutpat et.</p>
</div>
</div>
</div>


By default, the div with class desc should be layered on top of div with movie in it. But it wasn't. That is, the movie appeared to be on top, but when you try to play movie, you actually select the text beneath! If that's not crazy enough, when I set positioning - relative for parent and then lower positioning for div wiht movie, the movie still appears on top!

Come on, I can't be the only one who has faced this problem.

Thanks for response.

EMaks
11-23-2010, 02:53 PM
Maybe it happens because you have another div with class "obj" but without styling. This div appears in front of all. Try to write your css in the <head> of html for .obj



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum