PDA

View Full Version : Alternate posts colors


Chirag patel
03-28-2009, 01:54 AM
Is there a way to display posts in an alternate colors?

BlueNinjaGo
03-28-2009, 05:32 AM
What do you mean?

Chirag patel
03-28-2009, 06:42 AM
Something like this
http://www.zatzy.com/street-racing-general-automotive/330869-favourite-groupe-b-rally-car.html

see how the alternate post colors are different

BlueNinjaGo
03-28-2009, 12:45 PM
Try looking at your style's main CSS code?

Lynne
03-28-2009, 01:53 PM
Just change it based on the postcount. Something like:
if $postcount % 2
stuff for if even
else
stuff for if odd

(You'll have to write that correctly - I'm pre-coffee at the moment.)

Chirag patel
03-30-2009, 04:36 PM
Just change it based on the postcount. Something like:
if $postcount % 2
stuff for if even
else
stuff for if odd

(You'll have to write that correctly - I'm pre-coffee at the moment.)
Sorry Lynne,

Do you know which template I need to change for this?

Lynne
03-30-2009, 04:46 PM
You would make the change in the postbit template (or postbit_legacy, depending which you use). You just need to put the condition around the "alt1" tag for the class in that <td>, I believe. If you have problems, post *exactly* what you did in the template with about three lines shown above and below your change (so we can tell where in the template you did it).