Pligg CMS Forums


Go Back   Pligg CMS Forum > Pligg Development > Pligg Templates > Template Support



Color

Find help with problems related to Pligg templates.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-28-2007, 10:32 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 847
Color

Is there a way to make it so every second story had a different background color?

Geoserv.
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 04:09 PM
computerbar's Avatar
Pligg Donor
Pligg Version: 9.9.5
Pligg Template: yget,lemontwi
 
Join Date: Nov 2007
Location: UK
Posts: 79
Quote:
Originally Posted by Geoserv View Post
Is there a way to make it so every second story had a different background color?

Geoserv.
add this to your CSS

say you have 20 stories per page. x-news starts from 0

#xnews-1 {
background: #006600;
}
#xnews-3 {
background: #006600;
}
#xnews-5 {
background: #006600;
}

#xnews-7 {
background: #006600;
}
#xnews-9 {
background: #006600;
}
#xnews-11 {
background: #006600;
}
#xnews-13 {
background: #006600;
}
#xnews-15 {
background: #006600;
}
#xnews-17 {
background: #006600;
}

#xnews-19 {
background: #006600;
}

change color to your taste

check here demo

PeekLocal / Posted Blogs
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Text Color bryan0514 Customization Assistance 9 12-15-2008 02:14 PM
How to change the color on the category links FelixJ Customization Assistance 3 09-07-2008 06:40 AM
change color of vote for stories box cpalmquist "Mollio-Beat" 5 02-24-2007 06:51 AM
Color in Topusers side netstar General Help 0 12-23-2006 10:02 AM
need help with changing bump number color RabidPinata General Help 0 12-05-2006 06:25 PM

Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development