MS Outlook 2007 <br> Problem

user660763 picture user660763 · Mar 15, 2011 · Viewed 15.3k times · Source

I've made a HTMLemailer for a client. The emailer has a few line breaks with it. On other clients it looks perfect, until i come across MS Outlook 2007. Outlook doesnt seem to recognize the <br> and the width that iset inside a <div>. Is there a fix for this? Thanks in advance.

<table width="602px" cellpadding="0" cellspacing="0" border="0" align="center">
    <tr>
        <td colspan="3">
            <p align="center" style="font-family: arial; font-size: 11px; color: #000000;">If you are unable to read the contents of this email, please <b><a href="#" style="color:#000000; text-decoration:none;">click here</a></b> to view the online version.</p>
            <br>
         </td>
    </tr>
    <tr>
        <td colspan="3"><a href="#"><img src="#" width="602" height="161" alt="#"></a></td>
    </tr>
    <tr>
        <td colspan="3" style="border-top:2px black solid;"><br><br></td>
    </tr>

Answer

Colin James Firth picture Colin James Firth · Jun 11, 2012

Outlook is a pain for most things HTML email. You could try self closing the br tag <br />, and maybe putting it inside the paragraph element, but I doubt it'll get it working on its own. Other things I'd try are to add a none breaking space &nbsp; character to force some kind of layout into the td cell, or even going proper old-school and inserting a white padding image with the height set to whatever you need.