Skip to content

Instantly share code, notes, and snippets.

@bhongy
Last active December 24, 2015 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhongy/6758554 to your computer and use it in GitHub Desktop.
Save bhongy/6758554 to your computer and use it in GitHub Desktop.
Responsive Embedded, iFrame Video By TJK Design (http://www.tjkdesign.com)
.video {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
}
.video iframe,
.video object,
.video 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