I have an HD video (1920x818 approximately) on my site, I had help in a part of the solution since it was put 100%x100%
.
Now I would like to leave it fixed at the top of the page, I tried to use position:absolute; top:0; left:0;
, it works but two black bars appear (top and bottom). How do I resolve this?
I would like a result similar to that of this site: link
Note that below the image / video at the top there is a menu, I would like to adapt this situation to my case.
What I have so far:
<div id="video">
<video width="100%" height="100%" loop>
<source src="video/animacao-lol.mp4" type="video/mp4" />
</video>
</div>
#video {
width: 100%;
height: 100%;
}
video {
height: 99%;
width: 100%;
z-index: -100;
background-color: #000;
}