Created
February 24, 2014 22:16
-
-
Save JTLR/a407180fbb19dc3d1e85 to your computer and use it in GitHub Desktop.
Responsive video embed
This file contains hidden or 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
.embed { | |
position: relative; | |
height: 0; | |
padding: 0 0 56.25% 0; // 16:9 | |
overflow: hidden; | |
iframe, | |
object, | |
embed { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment