For the meta-date categories on my blog I have that part of the loop in its own div with a background image. I’d like to have the background image change based on the category of that post. I believe I can do this in css with a set of conditional tags (something along the lines of if category () echo red.png)
Any ideas of where to start with this or if it is possible?
The site is blog.printstitchandpaste.com and the image to be changed is the little flag/banner behind the category name.
The topic ‘Conditional tag in css for div background image’ is closed to new replies.