Rich HTML emails in Outlook 2007 and 2010… removing the top margin

Hi,

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 this pic:

http://smickie.com/9peXl.png

The pink is the background color of the body tag and the grey is the bg of the table. They both have 0 everything (margin, paddting ect). But there is still some space. The pink should not be visible.

Does anyone know how to get rid of this space on the body?

Also here’s some CSS for the start of the email:


<html>
<head>
    
    <style type="text/css">
        html, body{ 
            width:100%;
            margin: 0px !important;
          padding: 0px !important;
        }
        body{ 
            background-color:#ff00ff;
            margin-top: 0px !important;
            margin-left: 0px !important;
            margin-bottom: 0px !important;
            margin-right: 0px !important;
          padding-top: 0px !important;
          padding-left: 0px !important;
          padding-bottom: 0px !important;
          padding-right: 0px !important;
        }

        table
        {
          margin-top: 0px !important;
            margin-left: 0px !important;
            margin-bottom: 0px !important;
            margin-right: 0px !important;
          padding-top: 0px !important;
          padding-left: 0px !important;
          padding-bottom: 0px !important;
          padding-right: 0px !important;
        }
        
    </style>
    
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <title>Test</title>
</head>
  <body topmargin="0" style="margin:0; padding:0; width:100%; background-color:#ff00ff; margin-top:0px; margin-left:0px;" >
            <table topmargin="0" align="center" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;border-spacing: 0;border: 0; margin:0; padding:0; background-color:#eee; margin-top:0px; margin-left:0px;" >

Cheers!

BThies BThies, 5 years ago

It's built into the interface, you can't remove it.


Brian Thies
Professional Email Developer
Thies Publishing

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