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

FORUM

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

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

Thisisbully replied to Brandyn Shepherd's discussion
NING - Mobile App!
"AppgyserHere"
2 hours ago
Brandyn Shepherd replied to Brandyn Shepherd's discussion
NING - Mobile App!
"How do you do that? Know of any apps that make it easy? Will my applet be able to exists on sites t…"
2 hours ago
Ceddy J replied to Brandyn Shepherd's discussion
NING - Mobile App!
"I understand Brandyn, which is why you do an applet instead which gives a conveinent icon to click…"
4 hours ago
Brandyn Shepherd replied to Brandyn Shepherd's discussion
NING - Mobile App!
"Some people would rather click an app icon than open a browser and open up a website..."
6 hours ago
Ning via Facebook

So, you`ve created your content for efficient outreach. Where are you going to place it? How to…

Thiago Santos de Moraes replied to Brandyn Shepherd's discussion
NING - Mobile App!
"I think that to the extent that communities are responsive this is unnecessary."
8 hours ago
Ning via Facebook

Your Instagram is not just about photos and mentioning people. Let it bring real money for you!…

Fabricio Giugni replied to Fabricio Giugni's discussion
Please limit the Photo upload per day
"This would be a hard solution. We need also some thing to make the pictures small when someone uplo…"
12 hours ago
Annabel Gregory replied to Annabel Gregory's discussion
Failure to create links or embed images
"Ok, thanks.
 "
12 hours ago
Kyryl_Ning_Support replied to Fabricio Giugni's discussion
Please limit the Photo upload per day
"Hi Tom,
As you are able to set content approval and also you can remove the photos uploaded by the…"
15 hours ago
Kyryl_Ning_Support replied to Annabel Gregory's discussion
Failure to create links or embed images
"Hi Annabel,
Yep, sorry it seems that the new text editor button to embed the photo etc. provoking t…"
15 hours ago
Elizaveta, Laura Beatriz Alves Dornel, Denise Lopes and 5 more joined Ning Creators Social Network
17 hours ago
More…

Meanwhile, you can check our social media channels