If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / Alternating the background color in product list

Alternating the background color in product list

Locked

Started by starbuck on 23 Jun 2008, 9:34 PM · Views: 1,485

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
23 Jun 2008, 9:34 PM
#1
starbuck avatar

starbuck

New Zenner

Join Date:
Jun 2008
Posts:
47
Plugin Contributions:
0

Alternating the background color in product list

I’m guessing this is easy and most likely done in the stylesheets.

What I want is when looking at the list of products in a category or a search result each row (product) will have alternating background color i.e. first product will have a white background and the second a gray the third white and so on.

Thanks

23 Jun 2008, 9:41 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Alternating the background color in product list

Find or add .productListing-odd {} and .productListing-even {} in your stylesheet, and give them background-colors as desired.

23 Jun 2008, 10:14 PM
#3
starbuck avatar

starbuck

New Zenner

Join Date:
Jun 2008
Posts:
47
Plugin Contributions:
0

Re: Alternating the background color in product list

Thanks for that top guy:bigups:

26 Jun 2008, 5:25 PM
#4
rugbythug avatar

rugbythug

New Zenner

Join Date:
Feb 2008
Posts:
25
Plugin Contributions:
0

Re: Alternating the background color in product list

Thanks this helped me