Skip to content

Instantly share code, notes, and snippets.

@kjbrum
Created June 16, 2016 17:20
Show Gist options
  • Save kjbrum/06eb36a29da535f49a44527289fd1749 to your computer and use it in GitHub Desktop.
Save kjbrum/06eb36a29da535f49a44527289fd1749 to your computer and use it in GitHub Desktop.
Make embedded media elements responsive.
.video-wrapper {
position: relative;
padding-bottom: 56.25%;
height: 0;
iframe,
object,
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