Return to Snippet

Revision: 66875
at July 15, 2014 23:04 by dreamstarter


Initial Code
<cfoutput query="q">
   <cfset variables.n = CurrentRow MOD 2 + 1>
   <tr><td class="row#variables.n#">...</td></tr>
</cfoutput>

Initial URL

                                

Initial Description
alternating row color snippet for outputting query results in a html table

Initial Title
Alternating Row Colors

Initial Tags
color

Initial Language
ColdFusion