Written by me@grafxflow
18 Sep, 2012
0
2,373
Recently I created an email campaign and therefore was using a table based layout. In order to set the tables background colour I used the bgcolor attribute. It was simply set for white using the following:
<table>
<tr bgcolor="#FFF">
<td>Should output white!</td>
</tr>
</table>
All the test emails to my mail app on the mac showed a perfect layout, and perfect colour settings. But when testing in outlook, and even Internet Explorer it showed up as black?
So to sort the issue I had to use the full 6 character colour setting which then worked fine. Strange little issue!
<table>
<tr bgcolor="#FFFFFF">
<td>Should output white!</td>
</tr>
</table>
11 Oct, 2012
22 Apr, 2012
I am a Full-stack Developer who also started delving into the world of UX/UI Design a few years back. I blog and tweet to hopefully share a little bit of knowledge that can help others around the web. Thanks for stopping by!
Follow11 Jul, 2023
21 Jun, 2023
Views: 166,587
Views: 40,466
Views: 37,234
Views: 33,736