Rich HTML emails in Outlook 2007 and 2010… how do you remove the top margin?

前端 未结 7 717
无人及你
无人及你 2020-12-14 12:16

I have a rich HTML email. I was wondering how, in Outlook 2010 and 2007, you get the table in the layout to sit flush with the edge of the browser?

Have a look at th

7条回答
  •  执念已碎
    2020-12-14 12:27

    I know this is a bit late, but I came across this post and thought you might be able to test this method as well.

    http://theboywhocriedfox.com/code-snippets/fixing-the-forced-body-padding-in-outlook-2007-2010-and-2013/

    "Fixing the forced body padding in Outlook 2007, 2010 and 2013

    Testing a html email recently with a high percentage of recipients likely to be users of Microsoft Outlook I came across a bug where it’s not possible to overwrite the forced body padding in versions of outlook (which use MS Words rendering engine 2007, 2010, 2013).

    This was breaking the design and causing unwanted whitespace on the left margin of the email. The offending versions of outlook support margin (including negative margin) but only support inline styles. So the fix/hack is to wrap the entire email in a wrapper table and apply negative margin to just the problematic email clients – using html ‘if statements’ as below."

    
    

提交回复
热议问题