Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is bordercolor with tables cross client friendly in emails?

I want to change the border color of a table within my HTML email to another color but when I run my code through the HTML Validation it doesn't seem to like (bordercolor="#9cbdcc")

I've added an image below so you can see the error I get.

The main reason I'm asking this is that I'm now sending a lot of HTML emails to a lot of people and generally go for 100% validation to ensure there are minimal problems across all the email clients so it would be handy to know is this is a no no or if its okay.

Thanks in advance for any responses.

enter image description here

Decided to us the method below, the ticked answer would also work:

HTML

 <table cellspacing="2" cellpadding="0" border="0" bgcolor="#000000">
 <tr>
 <td width="200" height="30" bgcolor="#FF0000">
     TEST
     </td>
     <td width="200" height="30" bgcolor="#FF0000">
     TEST
     </td>
 </tr>
 </table>
like image 526
huddds Avatar asked Jan 02 '13 14:01

huddds


1 Answers

How about using inline styles or a stylesheet?

<table style="border-color:#9cbdcc;">

or

<table style="border: 1px solid #9cbdcc;">

They work perfectly in emails in all the clients.

like image 155
phpisuber01 Avatar answered Sep 18 '22 13:09

phpisuber01