Quick and Easy Alternating Row Colors
4
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>
.listrow1 { background-color: #EFEFEF; }
.listrow2 { background-color: #FFFFFF; }
</style>
<cfoutput query="q">
<cfset lr = CurrentRow MOD 2 + 1>
<tr class="listrow#lr#">
...
</tr>
</cfoutput>






Voting
Privacy Policy | Advertising
©1998-2008
All Rights Reserved.