I want to create a sort of banner in my webpage with a youtube video as background that should occupy the entire iframe from side to side (stretching the video and losing some pieces would be ok). Something like background-size: cover;
would do. I tried this but it's not really working (i can only see a really small stripe of video) in my case, probably because the format of my iframe is a little bit extreme.
<header id="banner">
<div class="overlay">
<iframe src="https://www.youtube.com/embed/N9Y86YCRRDg?&autoplay=1&loop=1&playlist=N9Y86YCRRDg&rel=0&controls=0&mute=1" width="100%" height="315"></iframe>
</div>
</header>