Skip to content

Instantly share code, notes, and snippets.

@dan-laskowski
Last active July 7, 2020 12:29
Show Gist options
  • Save dan-laskowski/b16c2accddcc976516f1c8f4cc8ee88d to your computer and use it in GitHub Desktop.
Save dan-laskowski/b16c2accddcc976516f1c8f4cc8ee88d to your computer and use it in GitHub Desktop.
[Responsive YouTube Player] #youtube #responsive #embed #css #style
<style>
.iframe-container{
position: relative;
width: 100%;
padding-bottom: 56.25%;
height: 0;
}
.iframe-container iframe{
position: absolute;
top:0;
left: 0;
width: 100%;
height: 100%;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment