"Responsive YouTube"
Bootstrap 3.3.0 Snippet by andrewbsc

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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 ----------> <div class="videoWrapperOuter"> <div class="videoWrapperInner"> <iframe src="https://www.youtube.com/embed/CR62t5lPrJ0" frameborder="0" allowfullscreen></iframe> </div> </div>
.videoWrapperOuter { max-width:640px; margin-left:auto; margin-right:auto; } .videoWrapperInner { float: none; clear: both; width: 100%; position: relative; padding-bottom: 50%; padding-top: 25px; height: 0; } .videoWrapperInner iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

Related: See More


Questions / Comments: