Odd / Even rows

Great for tables/divs where you need to alternate the colour of a row - we also use jquery on the dashboard (but this works better).

  1. ##start with  
  2. #set($counter = 0)  
  3.   
  4. ##for each row..  
  5. #set($counter = $counter + 1)  
  6.   
  7. ##in the css class put  
  8. #if($couter % 2 == 0)  
  9.     even  
  10.     ## Of course you can put this in a table or inside the class="even"  
  11. #else  
  12.     odd  
  13.     ## class="odd"  
  14. #end  
comments powered by Disqus