Skip to content

Instantly share code, notes, and snippets.

@ladislavsulc
Created December 13, 2014 21:52
Show Gist options
  • Save ladislavsulc/3cf14c6f7a3cbb5a7da2 to your computer and use it in GitHub Desktop.
Save ladislavsulc/3cf14c6f7a3cbb5a7da2 to your computer and use it in GitHub Desktop.
Stretch HTML5 Video 100% height and width - in a relative container - crossbrowser -> just adjust the absolute position to where you want to have the camera
.bg-video {
position: absolute;
left: 0;
right: 0;
bottom: 0;
min-width: 100%;
/*min-height: 100%;*/
/*width: 100%;*/
/*height: 100%;*/
z-index: 99;
background-position: left center;
@include background-size(cover);
object-fit: cover;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment