Skip to content

Instantly share code, notes, and snippets.

@chriscoyier
Created September 1, 2011 01:56
Show Gist options
  • Save chriscoyier/1185232 to your computer and use it in GitHub Desktop.
Save chriscoyier/1185232 to your computer and use it in GitHub Desktop.
.fluid-width-video-wrapper {
width: 100%;
position: relative;
padding: SET-BY-JAVASCRIPT% 0 0 0;
}
.fluid-width-video-wrapper iframe,
.fluid-width-video-wrapper object,
.fluid-width-video-wrapper 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