I found this thread — How do you stretch an image to fill a
I h
You can achieve this using css flex properties. Please see the code below
.img-container { border: 2px solid red; justify-content: center; display: flex; flex-direction: row; overflow: hidden; } .img-container .img-to-fit { flex: 1; height: 100%; }