Skip to content

Instantly share code, notes, and snippets.

@Andreolle
Created September 27, 2017 15:00
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 Andreolle/73845456019c5d521dd7dbd81ddc6efb to your computer and use it in GitHub Desktop.
Save Andreolle/73845456019c5d521dd7dbd81ddc6efb to your computer and use it in GitHub Desktop.
Youtube Iframe responsive
.video-wrapper {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
max-width: 100%;
iframe, object, embed {
margin-top: 0;
position: absolute;
top: 0;
left: 0;
width: 100% !important;
height: 100% !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment