Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap Modal vs Youtube Video z-index Issue

I am using a Twitter Bootstrap Modal and Youtube Video on the same page. I am facing Z-Index Problem where the Video is being displayed above the modal window in Chrome Browser.

How can i solve this issue ?

http://mink7.com/projects/cmrc/home.html

enter image description here

like image 385
Harsha M V Avatar asked Dec 01 '22 22:12

Harsha M V


1 Answers

You should use YouTube urls with ?wmode=transparent param.

<iframe src="http://www.youtube.com/embed/EBSnWlpTPSk?wmode=transparent"></iframe>

If you include your object/embed tag then you should add <param name="wmode" value="opaque" /> for object tags, wmode=transparent for embed tags.

like image 158
Fatih Acet Avatar answered Dec 11 '22 17:12

Fatih Acet