equivalent of background-size cover css for regular image
img {
object-fit: cover;
}
This does not work on IE, but for my use case i only needed it to kick in on mobile sizes, which should not, we pray not, be using IE.
img {
object-fit: cover;
}
This does not work on IE, but for my use case i only needed it to kick in on mobile sizes, which should not, we pray not, be using IE.