Tutorial Applying Even/Odd Classes

Used inside a loop, class names would be named .example-class0 and .example-class1 alternating. Increasing the "2" number allows ...


Used inside a loop, class names would be named .example-class0 and .example-class1 alternating. Increasing the "2" number allows you to increment in thirds or fourths or whatever you need:
class="class"
Classes: class0 class1 class2 class0 class1 class2
Change number to 4, this is the result: class0 class1 class2

Hot in Week

Popular

Archive

item