<style>
tr.alt1 td { background-color: #fff; }
tr.alt0 td { background-color: #ffc; }
</style>
<cfloop query="myQuery">
<tr class="alt#currentRow MOD 2#">
<td> ... </td>
</tr>
</cfloop>
Obviously the CSS belongs in an external stylesheet, rather than inline.
cheers,
barneyb
On Mon, 31 Jan 2005 12:51:10 -0800 (PST), Discover Antartica
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> I would like to display the output in such a way that the rows display in two
> colors alternatively. I am doing this to make the output more readable. Is
> there a way to do it? I think you use IIF function? but I cant remember
>
>
--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/
Got Gmail? I have 6 invites.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192432
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54