How to fix image style height and width not taken in Outlook mails with CSS?

Spread the love

To fix image style height and width not taken in Outlook mails with CSS, we add the width and height attributes.

For instance, we write

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

to add an img element with width 120px and height 150px to our email.

Leave a Reply

Your email address will not be published. Required fields are marked *