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

44,535

Solution 1

try to use

<div style="border:1px solid black;">Hola</div>

if it works

Solution 2

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...

Solution 3

try to use

border="1"
Share:
44,535
Eeyore
Author by

Eeyore

Updated on July 09, 2022

Comments

  • Eeyore
    Eeyore almost 2 years

    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

  • hkadejo
    hkadejo over 13 years
    Try <div style="border:1px solid #000;">Hola</div>