Answer the question
In order to leave comments, you need to log in
CSS height: auto for IE how to fix?
Page https://playdrone.ru/catalog/nazemnyy-transport/av...
Images of cars in IE are stretched in height.
Physically, the images are larger than the container, so they are scaled with
max-width: 100%;
max-height: 100%
width: 100%
height: auto;
And it works great in all browsers except our dearly beloved IE. Tell me how to fix the layout bug for the IE (Edge) browser, I already broke my brain.
Answer the question
In order to leave comments, you need to log in
try for the wrapper class - img_box - instead of height: 270px set max-height: 270px
Well, if edge, then he should understand such constructions:
img {
width: 100%;
height: 100%;
object-fit: contain;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question