Open hteumeuleu opened 3 years ago
I'm getting the following rule which is even stronger (more specific), after wrapping the entire email in <div id="root">
:
#root img {
max-width: 100% !important;
}
It's also the case that if the image doesn't have height:auto in it, Outlook iOS (at the very least - could not replicate anything for Outlook Android or Outlook.com) will add that rule inline on the <img>
, with an !important.
Following a conversation with Courtney F. on Slack, this bug no longer seems present in Outlook.com (webmail). But I still see the problem in Outlook iOS.
As reported several times over the past few weeks on the #emailgeeks slack, Outlook.com and the Outlook mobile apps have a new default style that resets the
max-width
property for images. Here's an example of the problematic rule seen on Outlook.com :The solution would be to either revert your
width
andmax-width
(thus havingwidth:150px; max-width:100%;
instead ofwidth:100%; max-width:150px;
or setting themax-width
to a non-image parent element.This bug sounds very similar to #29.