Skip to content

Instantly share code, notes, and snippets.

@millar
Last active August 22, 2016 14:58
Show Gist options
  • Save millar/3b90fcfee46655a2361741039103ad70 to your computer and use it in GitHub Desktop.
Save millar/3b90fcfee46655a2361741039103ad70 to your computer and use it in GitHub Desktop.
Chew iframe embed code
<style>
#chew-embed {
width: 100%;
display: inline-block;
position: relative;
}
#chew-embed:after{
padding-top: 56.25%;
display: block;
content: "";
}
#chew-embed iframe{
border: 0;
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
width: 100%;
height: 100%;
}
</style>
<div id="chew-embed">
<!-- {{ show.user.slug }} and {{ show.slug }} should be changed appropriately -->
<iframe src="//chew.tv/embed/{{ show.user.slug }}/{{ show.slug }}" allowfullscreen="true" scrolling="no"></iframe>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment