Skip to content

Instantly share code, notes, and snippets.

@jeremyfuksa
Created October 8, 2014 18:04
Show Gist options
  • Save jeremyfuksa/9d8be05ef711db29c05f to your computer and use it in GitHub Desktop.
Save jeremyfuksa/9d8be05ef711db29c05f to your computer and use it in GitHub Desktop.
SASS import for embedding videos the embedresponsively.com way.
.embed-container {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
max-width: 100%;
height: auto;
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