I did a lot of research over the internet, but this issue is not the exact same thing. I want to embed a video from vimeo using <iframe>
tag. I've also tried this code:
.video-responsive{
overflow:hidden;
padding-bottom:56.25%;
position:relative;
height:0;
}
.video-responsive iframe{
left:0;
top:0;
height:100%;
width:100%;
position:absolute;
}
<div class="video-responsive">
<iframe width="420" height="315" src="https://www.vimeo.com" frameborder="0" allowfullscreen></iframe>
</div>
But if you have a big screen, it also getting bigger, and that's not look great. I just want it to just shrink not greater than the provided width
and height
.