Created
November 17, 2017 17:08
-
-
Save sbddesign/dadb78a389071fa34f904995445858de to your computer and use it in GitHub Desktop.
SCSS to make video iframes responsive.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.video-container { | |
position: relative; | |
height: 0; | |
overflow: hidden; | |
padding-bottom: 56.25%; //Set back to 56.25% ************ | |
iframe { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; //Set back to 100% ************ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment