"Responsive YouTube and Vimeo Videos to Any Website"
Bootstrap 3.3.0 Snippet by basirsharif

<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="container"> <div class="row text-center"> <div class="video-responsive"> <iframe src="https://player.vimeo.com/video/260317172?autoplay=1&loop=1&title=0&byline=0&portrait=0" id="youIframe" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> </div> </div> </div>
.video-responsive{ overflow:hidden; padding-bottom: 53.25%; position:relative; height:0; } .video-responsive iframe{ left:0; top:0; height:100%; width:100%; position:absolute; }

Related: See More


Questions / Comments: