Quick and Easy Alternating Row Colors





4
Date Submitted Mon. Oct. 10th, 2005 12:23 PM
Revision 1 of 1
Beginner davidjmedlock
Tags Alternating | ColdFusion | Row
Comments 1 comments
Quick and Easy Alternating Row Colors
<style>
.listrow1  { background-color: #EFEFEF; }
.listrow2  { background-color: #
FFFFFF; }
</style>

<cfoutput query="q">
<cfset lr = CurrentRow MOD 2 + 1>
<tr class="listrow#lr#">
...
</tr>
</cfoutput>

David Medlock

www.kodefusion.com/

Comments

Comments I think this is easier
Sat. Oct. 7th, 2006 6:39 PM    Newbie dbenitez

Voting

Votes Down