Alternating Row Colors
alternating row color snippet for outputting query results in a html table
Copy this code and paste it in your HTML
<cfoutput query="q">
<cfset variables.n = CurrentRow MOD 2 + 1>
<tr><td class="row#variables.n#">...
</td></tr> </cfoutput>
Report this snippet
Comments
Subscribe to comments