0

I have an iframe inside a DIV and I would like to make the div draggable using jquery. I've found that I can accomplish this if I absolute position both the DIV and Iframe and set the Z-index of the DIV higher than the iframe (I understand the content underneath is now inaccessible).

Is there a way to achieve the same with the YouTube embed code? What's happening is that as the player is flash it's appearing infront of the DIV and ignoring the z-index.

All help appreciated.

Regards

Mechlar
  • 4,946
  • 12
  • 58
  • 83
Rob
  • 1,089
  • 3
  • 11
  • 19

1 Answers1

2

Just add the parameter wmode=transparent to the embed code:

Possible duplicate and solution here overlay opaque div over youtube iframe

Community
  • 1
  • 1
Mechlar
  • 4,946
  • 12
  • 58
  • 83