Very easy Josh.... here is the exact code I use, the simplest around. Simply
open your row bgcolor inside the cfoutput as I have here.

<table>
<cfoutput query="qWhatever">
<tr bgcolor="#iif(qWhatever.CurrentRow MOD 2, DE('000000'), DE('000033'))#">
<td nowrap align="center">=content=</td>
<td nowrap align="center">=content=</td>
</tr>
</cfoutput>
</table>
.... this alternates between the colors 000000 & 000033 which you can modify.

Tony



-----Original Message-----
From: Joshua Tipton [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 11, 2001 2:09 PM
To: CF-Talk
Subject: Making Rows change color


I would like my rows in my table alternate colors.  How do I do this?

The table is populated by a database.

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

Reply via email to