Tables inside of tables work great for this

<table>
<tr>
<td>
<table>
<cfoutput>
<cfloop from="1" to="100" index="number">
        <cfif number is 50>
                </table>
                </td>
                <td>
                <table>
        </cfif>
        <tr>
                <td>
                        #number#
                </td>
</tr>
</cfloop>
</cfoutput>
</table>
</td>
</tr>
</table>

-----Original Message-----
From: WebMaster [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 13, 2001 3:21 PM
To: CF-Talk
Subject: Ouput in 2 colums of a table


How can I get the output from a query to line up side-by-side in 2 columns
of a table? Like this:

Example:

1       4
2       5
3       6

Also, can this be done dynamically, so if the list changes it will
reorganize dynamically? For instance, if someone added 3 more entries, the
output of the list above would automatically readjust to this:

1       6
2       7
3       8
4       9
5

Anyone done this before?

Thanks,

Mike
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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