fix youtube embed z-index problems
youtube embedded videos (iframes) usually prevent other DOM elements from the host page to be displayed over them.
to fix this add simply the
wmode=opaque
parameter to your embed url
or specify the wmode in the call to the YouTube javascript API
player = new YT.Player('player', {
height: '381',
width: '681',
wmode: 'opaque', // Add this!!
...
Written by Mattia Gheda
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Javascript
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#