title: HTML passing image URL variable to CSS
body: <p>I have a HTML template with image blocks. Those images are loaded via CSS using background-image. Now the problem is that I can't pass these variables from my PHP code into CSS. The only solutions I manage to think of is to use inline HTML style attribute with background-image link, or just leave the image link as a data attribute in HTML and put the background-image css using JavaScript. Any other ideas? </p>
  
  <p><a href="https://stackoverflow.com/questions/15734546/using-html-data-attribute-to-set-css-background-image-url">Using HTML data-attribute to set CSS background-image url</a></p>