title: Add a background image to the end of a string of dynamic text, behind the text
body: <p>I need to place an image behind (or in front of - it doesn't matter) my h1 text, with it positioned so that it will always be a little to the right of the end of the text, like this:
  <img src="https://static1.squarespace.com/static/50f111c8e4b02b3b2218af91/t/5d9fbe25f2fa8c63b9af2e30/1570749989376/DynamicHeadlineExample.png" alt=""></p>
  
  <p>I can't seem to get the background image to display either on top of or behind the text. What am I missing?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>h1 {
    text-align: center;
  }
  
  h1:after {
    content: "";
    background: url("https://static1.squarespace.com/static/50f111c8e4b02b3b2218af91/t/5d9fa26b176671739c726240/1570742891482/CRMC-2020-Measure-h1-1a.png") no-repeat;
    background-position: -85px 12px;
    background-size: 32%;
    width: 400px;
    height: 50px;
    position: absolute;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;h1&gt;Dynamic Headline&lt;/h1&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>With <code>:after</code>, I can't get the image to display behind or above the text.</p>