Last active
October 15, 2020 22:13
-
-
Save carlossalas/1ea512570f2d1e8e7c11871cfaf1ae7c to your computer and use it in GitHub Desktop.
Video Aspect Ratio
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-aspect-ratio { | |
position: relative; | |
width: 100%; | |
height: 0; | |
padding-bottom: 55%; | |
iframe { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
left: 0; top: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment