Loading

Image padding disappears in Microsoft Outlook for Marketing Cloud emails

Date de publication: Oct 13, 2022
Description

Microsoft Outlook uses the Microsoft Word engine to render emails which ignores image padding.

To fix the problem, use one of the following workarounds:

Résolution
 
  • Manually add white space around the image within the image itself, then upload the image to Marketing Cloud and insert it into your email.
  • Add an additional white image next to the your image.
  • Insert the image into a table with a fixed width so that a space will appear between the image and the content.
  • Insert an "HSPACE" HTML tag into the image's HTML to define the white space on the image's left and right sides.

 

Example HSPACE HTML Code

 

<p>
<img src="{image_file_name}" 
alt="{Title_of_Image}" 
height =100 width =100
hspace="{Padding_in_Pixels}" align=left> 

Your text goes here.
</p>

It is important to understand that Salesforce has no control over how Outlook decides to render the email. Salesforce Support may not be able to debug the HTML & CSS code for you as those customizations are 'out of scope' requests.

 Email Client Support for Default Templates
https://help.salesforce.com/articleView?id=sf.mc_ceb_email_client_support.htm&type=5

 

Email template does not display correctly in Outlook or other email clients
https://help.salesforce.com/articleView?id=000324370&type=1&mode=1
Numéro d’article de la base de connaissances

000386716

 
Chargement
Salesforce Help | Article