"YouTube/Vimeo Responsive Embeds updated"
Bootstrap 3.2.0 Snippet by j2n4me

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!-- Reference http://getbootstrap.com/components/#responsive-embed NEW: "As seen in SUIT CSS, we've added a few classes for creating responsive embeds. They're great for proportionally scaling down YouTube videos and other iframe or embed elements" --> <div class="container"> <div class="row"> <h3> Mr. M.'s YouTube/Vimeo Responsive Embeds - Bootstrap 3.2 </h3> <p> <a href="http://bootsnipp.com/iframe/d2DzN" target="_blank">View Full Screen </a> <i>(Req'd to test on mobile device)</i> </p> <hr> </div><!--.row --> </div><!--./container --> <div class="container"> <div class="row row-eq-height"> <div class="col-md-4 ok"> <h4> Examples of Responsive Embeds, NEW to Bootstrap 3.2 </h4> <p><strong>This UPDATES my <a href="http://bootsnipp.com/snippets/featured/responsive-youtube-player" target="_blank">previous Bootsnipp example using custom CSS</a>, for Bootstrap 3.1.0.</strong> </p> <p> You don't need to include <code>frameborder="0"</code> in your <code>iframe</code>s as Bootstrap 3.2 override that for you. </p> </div><!--.col --> <div class="col-md-8"> <div class="embed-responsive embed-responsive-16by9"> <iframe class="embed-responsive-item" src="//www.youtube.com/embed/zpOULjyy-n8?rel=0"></iframe> </div> </div><!--.col --> </div><!--./row --> </div><!--./container -->
.ok { background-color: yellow; } .row-eq-height { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; }

Related: See More


Questions / Comments: