Created
January 25, 2016 18:34
-
-
Save erwstout/a65edbed7fbc6abca064 to your computer and use it in GitHub Desktop.
Flex Video
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 Based on Zurb Foundation | |
.flex-video { | |
position: relative; | |
height: 0; | |
padding-bottom: 75%; | |
margin-bottom: 1rem; | |
overflow: hidden; | |
} | |
.flex-video iframe, | |
.flex-video object, | |
.flex-video embed, | |
.flex-video video { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
} | |
.flex-video.widescreen { | |
padding-bottom: 56.25%; | |
} | |
.flex-video.vimeo { | |
padding-top: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment