SWF vs div content

Discussion in 'CSS' started by samirkumardas, Jun 11, 2008.

  1. #1
    A div containing a swf file with absolute position and another div will contain text in same position. SWF div(first one) has z-index 2 and text div (second div) has z-index 3. Logically div with text content should be top on swf div because of their z-index but in practically it is not working. SWF div always on top in spite of having lower z-index. But I need the text div on top. Any suggestion is much appreciated.

    Thanks
    Samir
     
    samirkumardas, Jun 11, 2008 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    The flash player plugin is a windowed object. That means it is not a part of the browser canvas, but is drawn by the OS. To make it a part of the canvas, add <param name="wmode" value="opaque"> in the <object> element, and to the <embed> element, add the attribute wmode="opaque".

    cheers,

    gary
     
    kk5st, Jun 11, 2008 IP
  3. samirkumardas

    samirkumardas Banned

    Messages:
    123
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hi gary,

    Thanks for the reply.


    Thanks
    Samir
     
    samirkumardas, Jun 13, 2008 IP