Milind Anantwar Milind Anantwar - 1 year ago 121
HTML Question

Image style height and width not taken in outlook mails

I have a following dom structure in html content I am sending as email.

<a href=""
<span style='text-decoration:none;text-underline:none'>
<img border=0 id="_x0000_i1026"

I am giving style
to image for making it of size thumbnail. Actual height and width of this image is very large. Problem is, this style is not taken when mail goes in outlook inbox. So my questions are -

1)How can i make the css work for setting height and width.

2) Image appears blur in Windown live mail. I am not sure whether it will persist in outlook when i will succeed in fixing style of height and width. so how can i fix this

Answer Source

Not sure this will work, you can give it a try :-

<img border=0 id="_x0000_i1026"
 src="images/img.jpg" width="120px" height="150px" />

ANother try :-

<img style="margin: 0; border: 0; padding: 0; display: block;"
src="images/img.jpg" width="120" height="150">

Another Option :-

<!--[if gte mso 9]>
<style type="text/css">
img.header { width: 600px; } /* or something like that */