Emails from Outlook 2007 to outlook.com have paragraphs with margins

Today I was testing emails and email signatures with outlook.com and while I'm sending from Outlook 2007 I found both add the usual unnecessary paragraph with msoNormal class around my content in the table cells.

That give stupid 13.5pt line-height and other paragraph 14pt bottom margin.

Screenshots
===============

Here after a couple of screenshots for the problem with and without styling:
http://i.stack.imgur.com/GPS9z.png

Without any type of styling
http://i.stack.imgur.com/ZrOGX.png

Here is how it should be and how it appears on Gmail while it was sent also from Outlook 2007
http://i.stack.imgur.com/q5DGV.png

I did managed the line-height issue but I still receive it on outlook.com with that bottom margin (14pt) with spans inside or only text .. with styling or not while it's fine on all other mail providers / clients.

HTML for test
=================

<table border="0" cellspacing="0" cellpadding="0" width="100%">
   <tr>
      <td width="80" style="height:13px;">data</td>
      <td style="height:13px;">data</td>
   </tr>
   <tr>
      <td width="80" style="height:13px;">data</td>
      <td style="height:13px;">data</td>
   </tr>
   <tr>
      <td width="80" style="height:13px;">data</td>
      <td style="height:13px;">data</td>
   </tr>
</table>
Stephen, 2 years ago

Hi hsobhy,

Thanks for getting in touch and sorry to hear you're having these Outlook 2007 woes, we feel your pain!

Just to confirm, Outlook 2007 can unfortunately add its own stylesheet to your HTML when sending, and will sometimes update your elements and add a class of "MsoNormal" to them.

To try to combat this, you could thus try adding a CSS class to your campaign's stylesheet, such as:

p.MsoNormal {margin: 0px}


In addition, you could also try adding “mso-line-height-rule:exactly” just before a line-height declaration on your table rows.

As such, you may wish to also try adding the following to your <td> tags:

<td style="mso-line-height-rule:exactly; line-height:13px; height:13px;" width="80">


So perhaps give that a try and let us know how you go here! :)

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098