The image does not cover the containing area completely (you can see that little teal strip at the bottom.)
Why is that? and what can I do in so that the image can cover the div completely?
div {
width: 300px;
}
.container {
width: 100%;
background-color: teal;
}
img {
max-width: 100%;
object-fit: cover;
}
<div>
<div class="container">
<img src="https://icatcare.org/app/uploads/2018/07/Thinking-of-getting-a-cat.png">
</div>
</div>