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

<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="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.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: