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

前端 未结 7 726
无人及你
无人及你 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:45

    With pure CSS (I'm not sure the makers of IE like reading that), you can use !important to force the margin and padding of the

    and the to be 0px:

    html, body
    {
      margin: 0px !important;
      padding: 0px !important;
    }
    
    table
    {
      margin: 0px !important;
    }
    

    Maybe it'll work, but maybe not. I'm not sure how Outlook handles CSS...

    提交回复
    热议问题