Alternating table row colors sure does make it easier on the eyes to locate data in large tables. After you’ve created your dynamic table, it just takes a tiny bit of hand-coding to create this common effect. Note that we have two custom classes, one named altRowColor and the other altRowColor2. Feel free to use your own class names in their place; just be sure you’ve defined the classes in your CSS.
In ColdFusion, it is super easy; just add a class attribute with the ColdFusion code shown here to the <tr> tag that is created dynamically: