Created
November 25, 2013 23:53
-
-
Save jamiehs/7651019 to your computer and use it in GitHub Desktop.
Fluid Video Embeds. Includes modest branding and other niceties in the embed URL.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="fve-video-wrapper"> | |
<iframe width="100%" height="100%" src="https://www.youtube.com/embed/kCIRQuHdBgQ?wmode=transparent&modestbranding=1&autohide=1&showinfo=0&rel=0" frameborder="0" allowfullscreen></iframe> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.fve-video-wrapper { | |
position: relative; | |
overflow: hidden; | |
height: 0; | |
padding-bottom: 56.25%; | |
margin: 1.5em 0; /* A bit of margin at the bottom */ | |
iframe, | |
object, | |
embed { | |
position: absolute; | |
display: block; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment