This loop is commented well so just have a look at the code:
Viewing 1 to 2 of 2 items
Alternating CSS styles with php
These php operators can be used to increment (++) a variable and divide it (%) by number, thus achieveing alternating code. Just remember to set your count variable to 0 outside of your loop before it starts: Used inside a loop, class names would be named .example-class0 and .example-class1 alternating. Increasing the “2″ number allows Full Article…