Skip to content

Instantly share code, notes, and snippets.

@adamcrampton
Created November 19, 2018 23:39
Show Gist options
  • Save adamcrampton/f6b16444293673cc3ce76d57751a8c58 to your computer and use it in GitHub Desktop.
Save adamcrampton/f6b16444293673cc3ce76d57751a8c58 to your computer and use it in GitHub Desktop.
Responsive iframe snippet
<style>
.resp-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border:0;
}
</style>
<div class="center" style="position: relative; overflow: hidden; padding-top: 56.25%;">
<iframe class="resp-iframe" id="ls_embed_1518049031" src="https://livestream.com/accounts/9098097/events/8027062/player?width=640&amp;height=360&amp;enableInfoAndActivity=true&amp;defaultDrawer=&amp;autoPlay=true&amp;mute=false" frameborder="0" scrolling="no"></iframe>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment