title: thymeleaf email template background-image not showing up
body: <p>I have this thymeleaf based email template:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html xmlns:th="http://www.thymeleaf.org"&gt;
  
  &lt;head&gt;
      &lt;title th:text="#{email.reset.title}"&gt;reset title&lt;/title&gt;
      &lt;meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /&gt;
  &lt;/head&gt;
  
  &lt;body th:style="'background: url(' + |cid:background| + ') no-repeat'"&gt;
      &lt;div style="margin:110px 0 0 50px;"&gt;
          &lt;div style="min-width:10px;min-height:300px"&gt;&lt;/div&gt;
          &lt;img style="display:block;margin-top:110px" th:src="|cid:logo|" /&gt;
          &lt;img style="display:block;margin-top:110px" th:src="|cid:background|" /&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>and I've defined two variable like this:</p>
  
  <pre><code>message.addInline( "logo", new ClassPathResource( "mails/images/logo.png" ), "image/png" );
  message.addInline( "background", new ClassPathResource( "mails/images/background.png" ), "image/png" );
  </code></pre>
  
  <p>The two images from the <code>img</code> tag appear correctly in the email sent out, but the same image put as background for <code>body</code> is not showing up. Don't know why.</p>
  
  <p>Using thymeleaf with java spring.</p>