Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Alternating topic colors?

  • Avatar of caming
    caming
    Participant

    @caming

    Hi all,

    I posted this to the bbPress forums, but couldn’t gauge a response. Using site-wide forums within BuddyPress, and trying in vain to get alternating colors to function with zero success. I’ve found this: `ul#topic-post-list li {
    background-color: #555555;
    }

    ul#topic-post-list li.alt {
    background-color: #888888;
    }`

    But again, zero result. :/ Any help would be appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of bp-help
    bp-help
    Participant

    @bphelp

    Assuming you correctly target the CSS elements you can try:
    `
    ul#topic-post-list li {
    background-color: #555555;
    }

    ul#topic-post-list li:nth-child(even) {
    background-color: #888888;
    }
    `

    Avatar of caming
    caming
    Participant

    @caming

    Well, according to bbPress CSS, it’s: table#topic-post-list … but again, nothing.

    Tried your suggestion, and also tweaked to match (I know, I’m at guesswork now) this: :

    `table#topic-post-list li {
    background-color: #555555;
    }

    table#topic-post-list li:nth-child(even) {
    background-color: #888888;
    }`With the same result …

    Avatar of caming
    caming
    Participant

    @caming

    Wow.

    Just nailed it. It’s `table#topic-post-list tr {
    background-color: #555555;
    }

    table#topic-post-list tr:nth-child(even) {
    background-color: #888888;
    }
    ` Thanks! You pointed me in the right direction!

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.