How are you outputting the rows? Are you looping over something? If so, you
could use mod.
<table>
<cfloop index="x" from="1" to="5">
<cfif (x MOD 2) NEQ 0>
<tr bgcolor="Blue">
<td>Stuff in a blue row.</td>
</tr>
<cfelse>
<tr bgcolor="Red">
<td>Stuff in a red row.</td>
</tr>
</CFIF>
</cfloop>
</table>
----- Original Message -----
From: "Joshua Tipton" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 1:40 PM
Subject: Row Color
> How do I make a tr tag change for every row. I would like alternating
> row
> colors.
>
> Joshua Tipton
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists