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.

About Rick

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.
34 comments

Leave a Reply

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

*
*