E-mail Marketing

0

I am starting an email marketing code, I want to apply the whole part a border-left and a border-right of 4px in the color #b21331 , but since the code for email marketing can not contain many tags, including that of style="" I need to know a way to be able to insert this inline border.

Follow my current code if someone knows how to help. Thank you very much.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>E-mail Marketing</title>
</head>

<body >

<table width="630" align="center" cellpadding="0" cellspacing="0" border="1" >

 <tr>
    <td height="43"><table width="630" cellspacing="0" cellpadding="0">
      <tr>
        <td width="157" height="43">
        <a border="0" href="#" target="_blank">
        <img border="0" src="../img/aberto_r1_c1.jpg" alt="#" width="196" height="43" border="0" style="display:block" title="img1" /></a>
        </td>
      </tr>
    </td>
 </tr>

</table>
</body>
</html>
    
asked by anonymous 31.03.2014 / 20:40

1 answer

3

Just insert a table inside the other, and change the background colors, to simulate the border:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>E-mail Marketing</title>
</head>
<body>
    <table width="630" align="center" cellpadding="0" cellspacing="0" border="0"  bgcolor="#b21331">
    <tr>
    <td>
        <table width="622" align="center" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff">
        <tr><td>
            CABECALHO
        </td></tr>
        <tr><td>
            <br><br><br><br>
            <br><br><br><br>
            Aqui vai o conteudo
            <br><br><br><br>
            <br><br><br><br>
        </td></tr>
        <tr><td>
            RODAPE
        </td></tr>
        </table>
    </tr>
    </td>
    </table>
</body>
</html>

I have not used your HTML in its entirety as a base, since the TR and TD tags are somewhat oddly nesting, but you can easily adapt the example.

For mail marketing I think it pays to base on traditional HTML 4 instead of XHTML.

    
31.03.2014 / 21:02