html5 Icon Logo
me@grafxflow

Written by me@grafxflow

18 Sep, 2012

0

2,373

bgcolor outputting wrong colour in ie and outlook

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>

Add comment

Smart Search

133 Following
50 Followers

me@grafxflow

Hull, United Kingdom

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!

Follow