leemunroe/responsive-html-email-template

Image width in Outlook 365 does not behave as expected

Closed this issue · 2 comments

I'm not sure if this is a bug pertaining exactly to this library but I notice that it is in the CSS so I thought I would say something.

Outlook seems to not like CSS styling of image widths/heights. My 1200px width PNG used as a heading image would display full size in outlook and would pull the rest of the container with it creating all sorts of styling issues.

For images the only way to override this behavior seems to be to put the width as the HTML parameter rather than CSS styling.

<img src=".." width="300">

Valid point. I usually have these attributes for images.

<img src="" alt="" width="" height="" border="0" style="border:0; outline:none; text-decoration:none; display:block;">

Would it be useful to include this in readme? It's something I reference in this post.