Skip to content

Instantly share code, notes, and snippets.

@asimoesmcartor
Last active July 15, 2017 00:29
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 asimoesmcartor/e5ef1601641974c2c4897eba80be1b96 to your computer and use it in GitHub Desktop.
Save asimoesmcartor/e5ef1601641974c2c4897eba80be1b96 to your computer and use it in GitHub Desktop.
This is a gist used to add an autoplay responsive video onto your page.
<div class="video-wrapper" style="padding-bottom: 25px;">
<style>.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }</style>
<div class="embed-container">
<iframe src="PLACE SOURCE OF EMBED VIDEO HERE" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment