Skip to content

Instantly share code, notes, and snippets.

@phenix-factory
Created February 20, 2014 09:16
Show Gist options
  • Save phenix-factory/9109791 to your computer and use it in GitHub Desktop.
Save phenix-factory/9109791 to your computer and use it in GitHub Desktop.
CSS: Flex video de foundation
.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