Skip to content

Instantly share code, notes, and snippets.

@swsalim
Created March 30, 2019 16:00
Show Gist options
  • Save swsalim/825bf2be79ee0f6f21d9aa5a86a16dc8 to your computer and use it in GitHub Desktop.
Save swsalim/825bf2be79ee0f6f21d9aa5a86a16dc8 to your computer and use it in GitHub Desktop.
.iframe-container {
overflow: hidden;
padding-top: 56.25%;
position: relative;
}
.iframe-container iframe {
border: 0;
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment