Thanks, Bobby! Rick
-----Original Message----- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Thursday, September 27, 2007 8:15 AM To: CF-Talk Subject: RE: Why wouldn't the first cell alternate colors with this code? You have get_events.recordcount that should probably be get_events.currentrow Try... <cfif currentrow mod 2 is 0> <cfset bgclr = "##ccc" /> <cfelse> <cfset bgclr = "##eee" /> </cfif> <td style="padding-top: 1px; padding-bottom: 2px; width: 35px; border-left: 1px solid ##aaa; border-bottom: 1px solid ##aaa; background: ###bgclr#; color: black; font-size: 11px; font-weight: normal; text-align: center;">#dateformat(event_date, "ddd")#</td> ...:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Thursday, September 27, 2007 7:31 AM To: CF-Talk Subject: Why wouldn't the first cell alternate colors with this code? Hi, all. Assuming all other related issues with this code are correct, why wouldn't this first cell alternate colors coded like this? The background color attribute seems to be ignored. <cfif get_events.recordcount mod 2> <td style="padding-top: 1px; padding-bottom: 2px; width: 35px; border-left: 1px solid ##aaa; border-bottom: 1px solid ##aaa; background: ##ccc; color: black; font-size: 11px; font-weight: normal; text-align: center;">#dateformat(get_events.event_date, "ddd")#</td> <cfelse> <td style="padding-top: 1px; padding-bottom: 2px; width: 35px; border-left: 1px solid ##aaa; border-bottom: 1px solid ##aaa; background: ##eee; color: black; font-size: 11px; font-weight: normal; text-align: center;">#dateformat(get_events.event_date, "ddd")#</td> </cfif> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289618 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

