Category List Alternating Colors?

I can’t seem to find the correct CSS code to make the categories alternate colors. I have it working properly for my topic list.

.topic-list-item:nth-child(odd) {
background-color: #404040;
}

Can someone point me in the right direction to do the same thing but for the categories page?

Do you mean a background color for the topics list in the category page? Then you should like use latest-topic-list-item?
If you mean the categories list, then likely .category-list tr
.

5 Likes

I’m looking to change the background color for the categories list, but I am trying to alternate the colors. Exactly like this.

I got it, you pointed me in the right direction :).

.category-list tr:nth-child(odd) {
background-color: #404040;
}

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.