Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Background DOES work in Outlook, but only in the <code>&lt;body&gt;</code> tag of the email. It won't work in individual <code>&lt;td&gt;</code>'s, only the whole email. </p> <blockquote> <p>UPDATE: Alternatively you can <a href="http://backgrounds.cm/" rel="noreferrer">use the VML method</a> which allows you to add background images to individual page elements in Outlook.</p> </blockquote> <p>This works in most clients including Outlook:</p> <pre><code>&lt;body style="background-image: url('img.jpg');"&gt; &lt;table width="100%" background="img.jpg"&gt; </code></pre> <p>Here is the full code that works in all major email clients including Outlook. It has background-image set with fallback to background in a 100% width table. </p> <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body style="margin: 0px; padding: 0px; background-image: url('http://lorempixel.com/output/food-q-c-100-100-7.jpg'); background-color: #0D679C; background-position: top center;" bgcolor="#0D679C"&gt; &lt;!-- BODY FAKE PANEL --&gt; &lt;table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="http://lorempixel.com/output/food-q-c-100-100-7.jpg"&gt; &lt;tr&gt; &lt;td&gt; &lt;!-- CENTER FLOAT --&gt; &lt;table width="800" border="0" valign="top" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"&gt; &lt;tr&gt; &lt;td height="1000" align="center" valign="middle"&gt; Center panel &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;!-- /CENTER FLOAT --&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;!-- /BODY FAKE PANEL --&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload