E-mail Marketing

Asked

Viewed 148 times

0

I’m starting an email marketing code, I wish to apply the entire piece a border-left and a border-right 4px in color #b21331, but as the code for email marketing cannot contain many tags, including the style="" need to know a way to get this inline edge inserted.

Follow my current code if anyone 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>

1 answer

3


Just insert one table into 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 didn’t use your HTML in its entirety as a base, because the TR and TD tags are nesting a little weird, but it’s easy for you to adapt the example.

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

  • Show, thank you very much!!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.