I'm currently working on a website project that involves using a YouTube video as the banner, but I'm facing some challenges in making it work correctly.
So far, this is what I have:
#video-background {
position: absolute;
right: 0;
top:135px;
left:0;
bottom: 0;
width:100% !important;
width: auto;
height:50vh;
min-height: 550px;
z-index: 99;
}
<div id="video-background">
<iframe frameborder="0" height="100%" width="100%"
src="https://www.youtube.com/embed/.....">
</iframe>
</div>
My main issue now is that there are large black borders surrounding the video on larger screens, and the responsiveness of the video is not optimal.