Template:Team Linkoping/popup video

From 2013.igem.org

(Difference between revisions)
Line 9: Line 9:
<body>
<body>
<div id="cover" style="position:fixed; top: 0; left: 0;width:100%;height:100%;background-color: rgba(0, 0, 0, 0.6);cursor:pointer;" onclick="hide_video();">
<div id="cover" style="position:fixed; top: 0; left: 0;width:100%;height:100%;background-color: rgba(0, 0, 0, 0.6);cursor:pointer;" onclick="hide_video();">
-
<div style="position:absolute;margin-left:50%;left:-260px;"><iframe width="520" height="426" style="margin-left:20px;margin-top:10px;"src="//www.youtube.com/embed/cNLbfJ47iCc?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>
+
<div style="position:absolute;margin-left:50%;margin-top:50%;left:-520px;top:-426px;"><iframe width="1040" height="852" style="margin-left:20px;margin-top:10px;"src="//www.youtube.com/embed/cNLbfJ47iCc?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
</body>
</body>
</html>
</html>

Revision as of 11:53, 2 October 2013