Created
February 20, 2014 09:16
-
-
Save phenix-factory/9109791 to your computer and use it in GitHub Desktop.
CSS: Flex video de foundation
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
.flex-video { | |
position: relative; | |
padding-top: 1.5625rem; | |
padding-bottom: 67.5%; | |
height: 0; | |
margin-bottom: 1rem; | |
overflow: hidden; } | |
.flex-video.widescreen { | |
padding-bottom: 56.55%; } | |
.flex-video.vimeo { | |
padding-top: 0; } | |
.flex-video iframe, | |
.flex-video object, | |
.flex-video embed, | |
.flex-video video { | |
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