2

Images are distorted in Yahoo Mail as it, for some reason, chooses to convert height into min-height.

I've done as instructed here but that does not help. Neither does this question.

This is the code for the img tag.

max-width:100%;height:auto;display:block;margin:20px auto;

And this is what Yahoo decides to do according to Firebug:

element {
max-width: 100%;
min-height: auto;
display: block;
margin: 20px auto;
}

Any ideas?

Thanks

BernardA
  • 1,391
  • 19
  • 48
  • Ehm, since `height:auto` is the default and `min-height:auto` doesn't do anything, is this really a problem? – Mr Lister Jun 03 '17 at 17:00
  • @Ehm This is standard css for responsive images and yes it will get distorted if height:auto is not there. Check https://stackoverflow.com/questions/16217355/automatically-resize-images-with-browser-size-using-css – BernardA Jun 03 '17 at 18:30

0 Answers0