Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are OBJECT & EMBED tags always on top?

Tags:

html

flash

I have a site I made that I am streaming video on, its starting to look pretty cool but the menu I made in CSS is always under the video so some of the links dissappear behind the object.

Does anyone know if I can fix this, I think I tried z-index one time to no avail?

I just reposted this question since this is also my problem.

like image 448
woninana Avatar asked May 03 '11 08:05

woninana


1 Answers

Set wmode="transparent" (transparent background) or wmode="opaque" (opaque background affected by bgcolor).

The default value is window which means that the object will have its own "window", so it is not affected by anything else in the webpage at all. If you set it to transparent or opaque, it will become "a part of the page".

Like:

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

This only applies to Flash AFAIK.

like image 197
kapa Avatar answered Sep 30 '22 09:09

kapa