Hi All,
I am creating a list according to a product group i have set, no problem there.
However i would like to use a different class in my div tag depending on wether the product is either an odd number in the list or an even number.
So i format differently depending on wether 1,3,5,7 in list or 2,4,6,8 etc.
My odd aligning left with padding and my evens aligning right without padding for an example.
Any ideas if i can do this? or do I need two seperate product groups and a bit more tinkering which would be a bit of a shame to have to do this.
Help appreciated as ever,
Cheers
Lee
I am creating a list according to a product group i have set, no problem there.
However i would like to use a different class in my div tag depending on wether the product is either an odd number in the list or an even number.
So i format differently depending on wether 1,3,5,7 in list or 2,4,6,8 etc.
My odd aligning left with padding and my evens aligning right without padding for an example.
Any ideas if i can do this? or do I need two seperate product groups and a bit more tinkering which would be a bit of a shame to have to do this.
Help appreciated as ever,
Cheers
Lee
Comment