Help! Styling Different Colored Category Backgrounds
-
Scoured the internet for awhile trying to find an answer. I am using a theme and added a custom category box on top of the month and comments to the right hand side of each post. However, I want to make it so the categories “news”, “coverage”, “press releases” and “social” all have a different background color.
I don’t want to use nth_child because it’s not cross browser compatible. I also tried using .category-category_name with no effect.
For now I put a background blue color for “.sev-category”, but I want it to change according to whatever category is posted.
here is the site: media.serevirugby.com
You can see the styling boxes to the left of the post. I want to change the top ‘category’ box color for each. Thank so much for your help!
- The topic ‘Help! Styling Different Colored Category Backgrounds’ is closed to new replies.