How to fix z-index in YouTube iframes

Add a parameter to force YouTube iframe to set a low z-index.

If you have any element you'll like to show above a YouTube iframe you just have to add a parameter to the iFrame URL.

wmode=transparent

Add the wmode parameter in the src URL.

<iframe class="youtube-player" type="text/html" width="520" height="330" src="http://www.youtube.com/embed/CyLkALroXGc?wmode=transparent" frameborder="0"></iframe>
34 comments

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*