Resizing element to parent div
1) CSS only Demo HTML <div class=”wrapper”> <video class=”videoInsert”> <source src=”http://www.w3schools.com/html/movie.mp4″ type=”video/mp4″> <source src=”movie.ogg” type=”video/ogg”> Your browser does not support the video tag. </video> </div> css .videoInsert { position: absolute; right: 0; bottom: 0; min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: -100; background-size: cover; overflow: hidden; } 2) jQuery Demo HTML <div id=”video-viewport”> … Read more