How to add border to a TABLE or DIV in html email in Hotmail?

Eeyore picture Eeyore · Nov 4, 2010 · Viewed 39.8k times · Source

Yes, html emails are bad but I have to send html newsletter to my a list of clients. Most of them use Hotmail.

Is it possible to add a CSS border around a <table> / <div> element?

<div style="border:1px solid #000000;">BORDER</div> doesn't work

Answer

Ed H picture Ed H · Jan 12, 2011

Looks like the best option is creating a table within a table:

<table bgcolor="#ACD13C" width="100%" cellpadding="2" cellspacing="0"><tr>
                                            <td><table bgcolor="#ffffff" width="100%" cellpadding="0" cellspacing="0">
                                               <tr>
                                                 <td style="font-weight: normal; font-size: 0.9em; color: #000000; font-family: Arial,helvetica,sans; padding:0px; text-align:left;" width="400">Text goes here</td>
                                                </tr>
                                            </table></td></tr></table>

Hotmail just doesn't like borders...