0

I need to stretch the image without distortion:

img {
   width: 100%;
   height: 300px;

   object-fit: cover;
}

But the object-fit is not supported in IE.. there a way to fix this.

Noth Wild
  • 11
  • 2
  • 4
  • 1
    Are you able to use `background-image` on a `
    ` instead? This will allow you use to `background-size: cover;`.
    – Niet the Dark Absol Sep 30 '16 at 16:24
  • 2
    See http://stackoverflow.com/questions/33473978/alternative-option-of-object-fitcover-for-internet-explorer and http://stackoverflow.com/questions/37792720/ie-and-edge-fix-for-object-fit-cover – Turnip Sep 30 '16 at 16:24
  • As far as I got the best solution is to use background-image on the
    and the background-size: cover; You can read more about this here: https://stackoverflow.com/a/37793244/10909525
    – Altin Mullaidrizi Jul 06 '20 at 14:56

0 Answers0