I'm having trouble making a video scale properly with the browser window while still covering the entire area. Does anyone know why my current approach isn't working?
HTML:
<div class="bgVideoWrap">
<video id="bgVideo" loop="true" autoplay="true" >
<source src="video/bgVideos/Speak_BG.webm" type="video/webm"></source>
</video>
</div>
CSS:
#bgVideo {
height: auto;
width: auto;
min-width: 100%;
min-height: 100%;
}
.bgVideoWrap {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #ff0000;
z-index: -1000;
overflow: hidden;
}
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
line-height: 1;
}