Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Alternating topic colors?

  • @caming

    Participant

    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)
  • @bphelp

    Participant

    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;
    }
    `

    @caming

    Participant

    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 …

    @caming

    Participant

    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)
  • The topic ‘[Resolved] Alternating topic colors?’ is closed to new replies.
Skip to toolbar