title: Dynamically set background image
body: <p>I need to apply a background-image to a div that gets set dynamically. So the editor uploads an image on a specific page to a specific attribute and I catch this image then and display those.</p>
  
  <p>Therefore I'd do something like this:</p>
  
  <pre><code>&lt;div class="foo" style="background:url(&lt;?php echo $attribute; ?&gt;) no-repeat top right; background-size: 140px;"&gt;
  </code></pre>
  
  <p>Is there a better approach to it by <strong>not</strong> using style="..." ?</p>
  
  <p>Thanks</p>