please, could you give me an advice, how to fit youtube embed video to browser size? I need to fully fill website, but I don't know, how to do it. Now my video fits to the width or height. But I need both. Do you know, how to do it?
My code till now: HTML:
<div id="bg" class="bg background-image">
<div class="embed-container">
<div id="youtube-player"></div> <!-- this row is replaced by iframe with video. i'm using youtube data api.... -->
</div>
</div>
CSS:
html{
height: 100%;
}
body {
min-height: 100%;
}
.bg {
width: 100%;
height: 100%;
overflow: hidden;
position: absolute;
left: 0;
top: 0;
z-index: -9999;
}
.background-image {
background: #000;
background-size: cover;
min-height: 100%;
position:absolute;
bottom:0;
left:0;
}
.background-overlay {
background: url('../assets/images/bg_pattern.png') left top;
}