How can I remove the empty space from the image container (blue)? I need it to be compatible with ie11.
I don't want to hardcode the width/height of the container because images can be different aspect ratios and sizes.
main {
width: 100%;
height: 100%;
}
.video {
width: 100%;
display: flex;
max-height: 5em;
border: 1px solid red;
}
.video .image {
background: blue;
max-height: 100%;
max-width: 100%;
}
.video .image img {
max-width: 20vw;
max-height: 100%;
}
<main>
<div class="video">
<div class="image">
<img src="https://placehold.it/300/200">
</div>
<div class="content">
<p>title</p>
<p>description</p>
</div>
</div>
</main>
