...
Code Block | ||
---|---|---|
| ||
<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#efefef" style="background-color: #efefef;"> <tr> <td><td bgcolor="#efefef" style="background-color: #efefef;"> ... your email content here ... </td> </tr> </table> |
... where the color here is set to a light gray (#efefef). Note that:
- Defining the color both via the bgcolor property and via a style increases the likelyhood of the email client being compatible with the code.
- The same is true for setting the color at the cell level as well (<TD> tag)
This method has been used extensively as it gets around the problem of email clients ignoring the <HEAD> and <BODY> tags (e.g. Yahoo! Mail). There are however a couple of issues with this method:
...