How to make video - iframes responsive

Nov
2016
07

This is a quick hack by Thierry Koblentz and presented on A List Apart in 2009: Creating Intrinsic Ratios for Video (www.alistapart.com/articles/creating-intrinsic-ratios-for-video/).

.videoWrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
height: 0;
}
.videoWrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

Original source: https://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php

this is an arrow pointing back to the top of the page