I have a div in which there is a youtube/iframe video and I have made the video responsive but I want to control the max height of wrapper which is not working
Here is the code I have
Problem currently if I put the wrapper in full width height div, its covering screen, but I want to apply a max width and height on it
.video_case {
float: none;
clear: both;
width: 100%;
position: relative;
padding-bottom: 56.25%;
padding-top: 25px;
height: 0;
max-height: 300px;
}
.video_case iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%
}
<div class="video_case">
<iframe src="https://www.youtube.com/embed/Rsa7a_a2H8I?rel=0" frameborder="0" allowfullscreen></iframe>
</div>