Line-height not working in Outlook 2010 for HTML Email

前端 未结 7 660
小鲜肉
小鲜肉 2021-01-31 08:52

Outlook 2010/ Outlook 2007 does not appear to be honoring line-height whatsoever in my HTML Email. (It works perfectly in Outlook 00 and Outlook 03)

I\'ve been doing som

7条回答
  •  野性不改
    2021-01-31 09:30

    Late response, but since I recently worked through a similar line-height issue in Outlook, I wanted to share my hacky workaround.

    For whatever reason, if you throw an unordered list into the HTML just before the CLOSING tag of the tag you specified the line-height for, Outlook 2010 respects the line-height.

    You can make the unordered list empty and invisble:

      Example:

      Lorem ipsum dolor sit amet, consectetur adipiscing elit.

        Disclaimer: I haven't tested this exhaustively. It works in my template through one ESP in Outlook 2010, Gmail's current version (July 27, 2012), and the iPhone email app. I don't know if the trick universally fixes the line height issue in other tags. I also acknowledge its a cludgey fix, but it's a cludgey problem; and, as is often the case with Outlook's flagrant disregard for HTML specifications, the fix is often as stupid as the problem. Use this if you want, but test it extensively before sending to actual recipients.

      提交回复
      热议问题