Yumnakamal (Talk | contribs) |
Yumnakamal (Talk | contribs) |
||
Line 2: | Line 2: | ||
<html> | <html> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<style> | <style> | ||
− | + | #video-bg { | |
− | + | position: relative; | |
− | + | width: auto; | |
− | + | min-width: 100%; | |
− | + | height: auto; | |
− | + | background: transparent url(video-bg.jpg) no-repeat; | |
− | + | background-size: cover; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | . | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | video{ | + | video { |
− | + | display: block; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | + | .video-container { | |
− | + | width: 100%; | |
+ | max-height: 600px; | ||
+ | overflow: hidden; | ||
+ | position: fixed; | ||
+ | top: 0; | ||
+ | right: 0; | ||
+ | z-index: -100; | ||
+ | } | ||
+ | </style> | ||
<div class="container-fluid" style="margin-top:80px"> | <div class="container-fluid" style="margin-top:80px"> | ||
</div> | </div> | ||
− | <div class=" | + | <div class="video-container"> |
− | <video> <source src="https://static.igem.org/mediawiki/2017/8/85/DNA_Background_Video_Ruslan_2.mp4"> </video> | + | <video autoplay loop muted id="video-bg"> |
+ | |||
+ | <source src="https://static.igem.org/mediawiki/2017/8/85/DNA_Background_Video_Ruslan_2.mp4" type="video/mp4" /> | ||
+ | |||
+ | </video> | ||
</div> | </div> | ||
− | + | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 21:48, 15 August 2017