![]() |
Alternating Colours / Whatever
This is a really simple and useful Smarty function, which allows you to have alternating colours, or really anything that might need alternating.
Code:
{cycle values="#000000,#FFFFFF"} or Code:
{cycle values="#000000,#FFFFFF,#006699"} or Code:
{cycle values="style1,style2"} eg. <div class="{cycle values="style1,style2"}">...</div> That simple. You can have as many colours, or what I did was use that in the class tag for different styles for product displays. So background of products could go:- Black White Black White I like to use it anyway. Jez |
how do I do this to the feature comparison details?
|
All times are GMT -8. The time now is 06:48 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.