Conditional tag in css for div background image (1 post)

  1. caraherch
    Posted 2 years ago #

    Hi all,
    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.

Topic Closed

This topic has been closed to new replies.

About this Topic