{"id":170,"date":"2014-01-28T08:36:56","date_gmt":"2014-01-28T08:36:56","guid":{"rendered":"http:\/\/freshinbox.com\/blog\/?p=170"},"modified":"2014-12-17T20:19:07","modified_gmt":"2014-12-17T20:19:07","slug":"outlook-com-and-background-images","status":"publish","type":"post","link":"https:\/\/freshinbox.com\/blog\/outlook-com-and-background-images\/","title":{"rendered":"Outlook.com and Background Images"},"content":{"rendered":"<p>(If you&#8217;re using conditional comments, read <a href=\"https:\/\/freshinbox.com\/blog\/outlook-com-removes-all-content-within-conditional-comments\/\">this article<\/a> on how Outlook.com is handling them differently)<\/p>\n<p>A well placed background image can make all the difference in an email. If you have an image that you&#8217;d like to use as the background, use a table cell background to get it to work in Outlook.com (Hotmail).This is effective because Outlook.com strips background-image styles.<\/p>\n<p>For example Outlook.com  will strip the background-image from this div element.<\/p>\n<pre class=\"lang:default decode:true \" >&lt;div style=\"width:300px; height:200px; \r\n    background-image:url(http:\/\/server\/image);\"&gt;\r\n  Content\r\n&lt;\/div&gt;<\/pre>\n<p>However if the background is set using the background attribute, Outlook.com will leave it as is, for example:<\/p>\n<pre class=\"lang:default decode:true \" >&lt;table border=0 cellpadding=0 cellspacing=0&gt;&lt;tr&gt;\r\n  &lt;td width=\"300\" height=\"200\" background=\"http:\/\/server\/image\"&gt;\r\n  Content\r\n  &lt;\/td&gt;\r\n&lt;\/tr&gt;&lt;\/table&gt;<\/pre>\n<p><b>Client Support<\/b><\/p>\n<p>Most clients support both table cell background and the background-image style. However table cell background has the added support of Outlook.com and Lotus Notes 8.5. These clients support table cell background, Yahoo! Mail, Outlook.com, Gmail, Outlook 2003, Lotus Notes 8.5, iOS Mail, Android Mail.<\/p>\n<p><b>Background Images on Outlook 2007+<\/b><\/p>\n<p>As an aside, Outlook 2007\/2010\/2013 do not support either table background images or background-image styles but Campaign Monitor created a Bulletproof background images tool that allows for background images in those clients by using some clever techniques. You can check it out at <a href=\"http:\/\/backgrounds.cm\" target=\"_blank\">backgrounds.cm<\/a>.<\/p>\n<p><b>Recap<\/b><\/p>\n<p>Our <a title=\"first Interactive Email example\" href=\"https:\/\/freshinbox.com\/blog\/3-steps-to-create-an-interactive-email-using-css\/\" >first Interactive Email example<\/a> allowed the user how to toggle between a foreground image and a background image set on a table cell using the background attribute.\u00a0 As demonstrated above,\u00a0it would be easier to implement using one element and toggling over the background-image style. However, doing so would mean the effect would not work on Outlook.com although it would still work on Yahoo! Mail and Outlook 2003.<\/p>\n<p><BR><BR><br \/>\n<div style=\"padding:10px; border: 2px solid #99C731;background-color:#FFF8DC;border-radius:5px;\">\n<form action=\"https:\/\/freshinbox1.createsend.com\/t\/i\/s\/adrmi\/\" method=\"post\" id=\"subForm\">\n<span class=\"fisub_header\" style=\"font-weight:bold;\">Subscribe to the #EmailGeeks Newsletter<\/span>\n<p><input id=\"fieldEmail\" name=\"cm-adrmi-adrmi\" type=\"email\" style=\"width:90%\" required placeholder=\"Your Email Address\" \/><\/p>\n<p><button type=\"submit\">Subscribe<\/button><\/p>\n<\/form>\n<\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A well placed background image can make all the difference in an email. If you have an image that you&#8217;d like to use as the background, use a table cell background to get it to work in Outlook.com (Hotmail).This is effective because Outlook.com strips background-image styles&#8230;<\/p>\n","protected":false},"author":2,"featured_media":292,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[23,24],"tags":[8,11,10,5,16,9,4,14,15,26,13,27],"_links":{"self":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/170"}],"collection":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/comments?post=170"}],"version-history":[{"count":9,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/170\/revisions"}],"predecessor-version":[{"id":1304,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/170\/revisions\/1304"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/media\/292"}],"wp:attachment":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/media?parent=170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/categories?post=170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/tags?post=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}