avex,

With an arbitrary "splitting limit" of 700, something like this should work.
Haven't tested it should point you in the right direction.

<cfif len(yourText) GT 700>
        <cfset temp = int(len(yourText)/2)>
        <cfset boundary = Find(" ", yourText, temp)>
<cfelse>
        <cfset boundary = len(yourText)>
</cfif>

<table>
        <tr>
                <td valign="top" width="50%">#left(yourText, boundary)#</td>
                <cfif len(yourText) GT 700>
                        <td valign="top" width="50%">#right(yourText,
len(yourText) - boundary + 1)#</td>
                </cfif>
        </tr>
</table>



Courtney E. Payne, Developer
Fig Leaf Software
"We've got you covered"
[EMAIL PROTECTED]
www.figleaf.com 


-----Original Message-----
From: avex [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 10, 2000 2:52 AM
To: CF-Talk
Subject: text split into 2 columns


Hi everyone.

I am doing a site where I have a body of text (about a paragraph or two).
What I want to do is to to split this into 2 columns instead of one.

Can this be done dynamically?
Eg, If the first column exceeds so many characters, then output the
remainder in the second to get the text column effect?

any help would be great!

thanks

chad


----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to