Last active
January 22, 2018 17:54
-
-
Save basselin/2999791065a1e674ac001b8726cb9de7 to your computer and use it in GitHub Desktop.
iframe responsive with Bootstrap 3.3.7
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
<!-- 16:9 aspect ratio --> | |
<div class="embed-responsive embed-responsive-16by9"> | |
<iframe class="embed-responsive-item" width="500" height="300" src="https://www.youtube.com/embed/tVgMTBEwhT8" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> | |
</div> | |
<!-- 4:3 aspect ratio --> | |
<div class="embed-responsive embed-responsive-4by3"> | |
<iframe class="embed-responsive-item" width="500" height="300" src="https://www.youtube.com/embed/tVgMTBEwhT8" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment