Posted By

rumremix on 11/29/10


Tagged

object flash z-index layering stacking-order


Versions (?)

flash or object tags and z-index


 / Published in: HTML
 

URL: http://manisheriar.com/blog/flash_objects_and_z_index

  1. 1. Wrap your flash content in a div
  2. 2. Add <param name="wmode" value="transparent"> to your object tag
  3. 3. Set wmode="transparent" in the embed tag
  4. 4. Use css to set the position and z-index for your div (don't set negative z-index values as it will make your flash disappear)
  5.  
  6. :c:
  7.  
  8. #flash {
  9. position: relative; /*or absolute*/
  10. z-index: 0;
  11. }
  12.  
  13. :x:
  14.  
  15. <div id="flash">
  16. <object .... >
  17. <param name="wmode" value="transparent">
  18. <embed .... wmode="transparent">
  19. </div>
  20.  
  21. And that�s it!

Report this snippet  

You need to login to post a comment.