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.


Add the wmode parameter in the src URL.

<iframe class="youtube-player" type="text/html" width="520" height="330" src="" frameborder="0"></iframe>
Code language: HTML, XML (xml)

Leave a Reply

Add <code> Some Code </code> if you need to.