Ahh yes many thanks that seems to work well. JLB
-----Original Message----- From: Scott Brady [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 1:06 PM To: CF-Talk Subject: Re: <cfoutput> formatting >I use mod to do this... > ><table> > <tr> ><cfoutput query="getReviews"> > <td> > #UCase(cusername)#<br>(#cpassword#) > ><cfif (currentRow mod 4) eq 0> > </tr> > <tr> ></cfif> ></cfoutput> > </tr> > </table> (I think you're missing the closing </td> tag) One suggestion I'd add to the above is after you get out of the loop, you might need to pad the last row if the query doesn't return a multiple of 4 rows: <cfif (currentRow mod 4) eq 0> </tr> <tr> </cfif> </cfoutput> <!--- This should get you the number of cells you need to add --> <cfset padCells = 4 - getReview.RecordCount MOD 4> <cfif padCells LT 4> <cfloop from="1" to="#padCells#"> <td> </td> </cfloop> </cfif> </tr> </table> -------------------------------- Scott Brady http://www.scottbrady.net/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

