setup to classes in your style sheet with whatever colors you want...
TD {
}
..even {
color : Black;
}
..odd {
color : White;
}
and then when you output do something like:
<TABLE>
<CFOUTPUT QUERY="qry_nothing">
<TR>
<TD<CFIF CurrentRow Mod 2 EQ 0> CLASS="even"<CFELSE>
CLASS="odd"</CFIF>>
#nothing_id#
</TD>
</TR>
</CFOUTPUT>
</TABLE>
now, i did this free hand and did not test it, but i hope the logic is
there, just check and see if the currentrow is even or not. and depending
on what it is, everyother row will use the same class style...
hope this helps and sorry if this doesnt work out of the box....
Terry Bader
IT/Web Specialist
EDO Corp - Combat Systems
(757) 424-1004 ext 361 - Work
[EMAIL PROTECTED]
(757)581-5981 - Mobile
[EMAIL PROTECTED]
icq: 5202487 aim: lv2bounce
http://www.cs.odu.edu/~bader
-----Original Message-----
From: Joshua Tipton [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 11, 2001 5: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