Blog

18 Sep
2012

html5 Icon Logo

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>
Posted in: < PHP and HTML and CSS >
me@grafxflow avatar

me@grafxflow


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!

Visitors also viewed these posts


Add comment

Add comment