title: How to have dynamic image as CSS background?
body: <p>I have a logo div that I want to use my logo image as the background for, such as:</p>
  
  <pre><code>.logo {
      background: #FFF url(images/logo.jpg);
  }
  </code></pre>
  
  <p>However, on a settings page in my script, I would like to have a text input field to specify what the image URL is for the background image.</p>
  
  <p>How can I set the background image for this div as the inputted image URL without having to do:</p>
  
  <pre><code>&lt;div&gt;&lt;img src="/images/logo.jpg" /&gt;&lt;/div&gt;
  </code></pre>
  
  <p>(The script is written in PHP)</p>