ben-g
7/31/2017 - 9:54 PM

Responsive fix for iframe videos

Responsive fix for iframe videos

//This should only be impletmented on mobile.  Then after, tweak css as needed.

//.wrapper class represents the container or "wrap"

@media all and (max-width: 600px) {
.v-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
    }
.v-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    }
}