Current status of the Ning Platform is always available on the Ning Status Blog.

NC for Hire

Hi all,

Here's an easy tip to take advantage again of CSS3 capabilities. With the nth-child(n) pseudo selector, you can customize your forum index or topic list by giving it an alternating background color effect.

Add this code to your Design Studio CSS box:

All Forum Index/Discussion List

.categories tbody tr:nth-child(odd) { background-color:#fff; }
.categories tbody tr:nth-child(even) { background-color:#e9eee8; }

 

Home page module forum list

.module_forum .vcard:nth-child(odd) { background-color:#fff; }
.module_forum .vcard:nth-child(even) { background-color:#e9eee8; }


More Options

Blog module list (contributed by Jane Noel)

.xg_blog .xg_module_body:nth-child(odd) { background-color:#fff; }
.xg_blog .xg_module_body:nth-child(even) { background-color:#e9eee8; }

Home page blog module list

.module_blog .vcard:nth-child(odd) { background-color:#fff; }
.module_blog .vcard:nth-child(even) { background-color:#e9eee8; }

 

Make sure to change the background color values that will match your theme or to any value you like. I have downloaded and applied this style to a local static html copy of this forum for a good sampling and demo/screenshot below. Similar to the 'Top This Week' box and pretty much straightforward on what the code will do.

The code also applies to featured discussions and group discussion list.

Add your own additional styles and enjoy!

You need to be a member of Ning Creators Social Network to add comments!

Join Ning Creators Social Network

Votes: 0
Email me when people reply –

Replies

  • NC for Hire

    Very nice tip...thanks a lot. will this apply to Main page forum module too?

    • NC for Hire

      Hey Bernard, you're welcome. Yes, just updated it :-)

      cheers.

  • Excellent tip Ron!

  • This reply was deleted.
    • NC for Hire

      Hi Diane,

      I'm not sure but I think it will also work.

  • Great tip Ron. Thanks for sharing :)

This reply was deleted.
 

Some interesting articles related to community management, digital marketing etc. could be found in our digest. Don't hesitate to leave a feedback so we would know that we should continue :-)

Latest Activity

Birthday Gift Network updated their profile
yesterday
Birthday Gift Network updated their profile photo
yesterday
Paul Corona replied to Donna MacShoe's discussion
Ning Support phone number for my 20 yr old site
"NING support is useless anymore...I have respnded three times asking questins to a message they…"
Jan 15
Alex - Rosas † Negras posted a discussion
due to personal problems I have not been online anymore, I apologize so much and I am happy to be…
Jan 14
Alex - Rosas † Negras replied to Kos's discussion
Help w/Chat. Ning Support A No Go
"IL PROBLEMA È SEMPRE LO STESSO, NING GLI OPERATORI... DEVONO ELIMINARE I COOKIE SUL VOSTRO SITO"
Jan 14
Vlada replied to Kos's discussion
Help w/Chat. Ning Support A No Go
"I'm no IT expert by any means, but out of curiosity have you tried entering the chat room from the…"
Jan 8
Vlada replied to Eva Libre's discussion
Update, Merry Christmas
"Then add the recent price hike email that Ning has notified to be taking effect soon, I'm not…"
Jan 8
Kos posted a discussion
In November we began to notice Chat "freezing up" and when we would refresh the page, it would…
Dec 27, 2024
Eva Libre posted a discussion
UpdateMerry ChristmasToday I woke up totally frustrated and determined to do something.At the end…
Dec 26, 2024
Eva Libre liked Eva Libre's discussion Ning 3.0 is antisocial!
Dec 25, 2024
Eva Libre updated their profile
Dec 25, 2024
Eva Libre replied to Eva Libre's discussion
Ning 3.0 is antisocial!
"Update
Merry Christmas
Today I woke up totally frustrated and determined to do something.
At the…"
Dec 25, 2024
More…

Meanwhile, you can check our social media channels