XF 2.1 How do I alternate forum row colors?

Hi guys,

Instead of having the rows of all the forums and threads plain white, I want to alternate between white and light grey.

How would I achieve that?

Thanks!
 
That was implemented on our site via css. Looks like through this:

Code:
.structItem:nth-child(even) {
    background-color:#edf4fa
}

Example: https://forums.macrumors.com/forums/ios-13-and-ipados.207/

The only oddity is that ignored content still exists and is just hidden via css, so it messes up the odd/even count. So sometimes you'll see two of the same color rows next to each other.

Example attached
 

Attachments

  • Screen Shot 2019-12-26 at 7.25.18 PM.webp
    Screen Shot 2019-12-26 at 7.25.18 PM.webp
    43 KB · Views: 26
That was implemented on our site via css. Looks like through this:

Code:
.structItem:nth-child(even) {
    background-color:#edf4fa
}

Example: https://forums.macrumors.com/forums/ios-13-and-ipados.207/

The only oddity is that ignored content still exists and is just hidden via css, so it messes up the odd/even count. So sometimes you'll see two of the same color rows next to each other.

Example attached

thanks for the reply.

Sorry I just migrated from MyBB so I'm kind of oblivious right now.

Where do you put that code?
 
Back
Top Bottom