I found this thread — How do you stretch an image to fill a
I h
This should do it:
img {
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
}
The CSS object-fit: cover
and object-position: left center
property values now address this issue.
Try this:
img {
position: relative;
left: 50%;
min-width: 100%;
min-height: 100%;
transform: translateX(-50%);
}
Hope this helps