resize image css without stretching code example
Example: How to make an image fill its container without stretching
.cover {
object-fit: cover;
width: 50px;
height: 100px;
}
.cover {
object-fit: cover;
width: 50px;
height: 100px;
}