Yumnakamal (Talk | contribs) |
Yumnakamal (Talk | contribs) |
||
Line 10: | Line 10: | ||
Padding-top is for the fixed height header of the embedded content */ | Padding-top is for the fixed height header of the embedded content */ | ||
− | + | .videoWrapper { | |
− | + | position: relative; | |
− | + | padding-bottom: 56.25%; /* 16:9 */ | |
− | + | padding-top: 25px; | |
− | + | height: 0; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | height: | + | |
} | } | ||
− | + | .videoWrapper iframe { | |
− | + | position: absolute; | |
− | + | top: 0; | |
+ | left: 0; | ||
+ | width: 100%; | ||
+ | height: 100%; | ||
} | } | ||
+ | |||
</style> | </style> | ||
− | |||
− | |||
− | |||
+ | <div class="videoWrapper"> | ||
+ | <iframe width="560" height="349" src="https://static.igem.org/mediawiki/2017/8/85/DNA_Background_Video_Ruslan_2.mp4" frameborder="0" allowfullscreen></iframe> | ||
+ | </div> | ||
Revision as of 04:58, 15 August 2017