Code Snippets Gallery

Blog > Code Snippets > HTML > Keep Flash Behind Other Elements Submit one!

Keep Flash Behind Other Elements

For example, a dropdown menu going “behind” a flash movie, or staying on top of a lightbox layover.

Try This #1

Add this to the Flash embed code:

<param name="wmode" value="transparent">

Try This #2

Make sure the element that is supposed to be on top has positioning (fixed, relative, or absolute) and a z-index value higher than the Flash object.

Responses

  1. Thanks i was wondering how i would get flash to be behind. Very helpful.

  2. jabga says:

    helpful trick. thanks

  3. Great website design Chris and also great tips!
    Love your website! =)

    Tonya in Stafford, VA, USA
    near Washington DC

  4. luke says:

    thank you

Leave a Comment

Remember:
  • Be nice.
  • Wrap all code in <pre> and <code> tags. (single or multiple lines) and escape it first (turn <'s into &lt;'s).
  • You may use regular HTML stuff like <a href="">, <em>, and <strong>