In my stylesheet I'm hoping to use code like this...
background-image: url(/wp-content/images/' . $category->cat_ID . '.jpg);
...to pull in a different background image for each category. So I'll have an image called 1.jpg and it'll show that image as the background to the li element I'm trying to style for Category 1.
That approach works fine in template files like this...
<img src="/wp-content/images/' . $category->cat_ID . '.jpg">
...but in the stylesheet it's not working for me.
Any tips?