Codeworks client log in
latest tweet
Check out our awesome new canvas that arrived today, we'll be making a few more of them to put round the office! http://t.co/oZlesYKD
Have a rummage around our archive = there's some real hidden treasures in there!

news, announcements & our blog...

Background imgs in Outlook, who knew! posted by Kevin S, 12.12.2011

I recently noticed a spout of emails coming into my inbox that have background images!? As many developers know background images in outlook are non existant, unheard of, a miricle!

So as any self respecting developer would do i jumped straight onto google with the string of keywords "when did outlook start supporting background images". Well, as it turns out a backround *image* does work, its background *images* that do not.

I came accross a blog that then explains that background images do not work in Outlook (thank goodness im not going crazy!) - but what will work is one single background image that sits in the body tag! There is one little snag that you will need to deal with (as if a Microsoft product would just work!). While every other client seems to gracefully assume no-repeat for the second part of the repeat line, Outlook does not. Take a look at the css code below and boom, you'll have body background images working.


body {
background-image: url('http://www.codeworks.org.uk/emails/bg.jpg');
background-repeat: repeat-y no-repeat;
background-position: top center;
background-color: #d9c092;
}

Leave a Comment back to blog