Jump to content

div overlay


optikalefx

Recommended Posts

i created a div overlay over the entire screen

 

<div style="width:100%;height:100%;position:absolute;top:0;left:0;background-color:black;z-index:999999"></div>

 

but when i put an opacity on it, say opacity:0.8;  it doesnt work with embeds.  as in, the embeds (like flash) are still on top of the div.  even though when there is no opacity its covered.  why would opacity not work on embeds?  Only in firefox that is.  it works in safari.  i tried all 3 types of opacity the filter="alpha(opacity thing and moz-opacity, any ideas?

Link to comment
https://forums.phpfreaks.com/topic/91093-div-overlay/
Share on other sites

 

Set a wmode parameter for the object and the embed; like so;

 

<object>
<param name="wmode" value="transparent">
<embed wmode="transparent"></embed>
</object>

 

Of course you will have to add all the rest of the object's/embed's parameters, code type and so on............

Link to comment
https://forums.phpfreaks.com/topic/91093-div-overlay/#findComment-467182
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.