View Single Post
  #2  
Old 09-25-2009, 12:30 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Using foreach, how do you alternate product list Div's background color

Use cycle instead...
Code:
<div class="{cycle values="style1,style2"}">...</div>
Then...
Code:
.style1 { background: #ccc; } .style2 { background: #eee; }
Etc.
__________________
xcartmods.co.uk
Reply With Quote