Make sure you don't have any extra line breaks before or after the text:

<cfscript>
function toVert(str) {
  var result = "<pre>";
  for (i = 1; i LTE len(str); i = i + 1)
    result = result & mid(str, i, 1) & chr(10);
  return result & "</pre>";
}
</cfscript>

<cfoutput>#toVert("i'm good")#</cfoutput>

yields:

<pre>i
'
m

g
o
o
d</pre>

---
Barney Boisvert, Senior Development Engineer
AudienceCentral
[EMAIL PROTECTED]
voice : 360.756.8080 x12
fax   : 360.647.5351

www.audiencecentral.com


> -----Original Message-----
> From: Heald, Tim [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 11:44 AM
> To: CF-Talk
> Subject: RE: CSS and vertical text - help!
>
>
> <pre>
>       L
>       O
>       O
>       K
>       S
>
>       L
>       I
>       K
>       E
>
>       T
>       H
>       I
>       S
> </pre>
>
> Remove the tabs if it looks wrong :)
>
> Timothy Heald
> Information Systems Specialist
> Overseas Security Advisory Council
> U.S. Department of State
> 571.345.2235
>
>
> -----Original Message-----
> From: Reed Powell [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 2:21 PM
> To: CF-Talk
> Subject: CSS and vertical text - help!
>
>
> Hi guys - I have 1 foot out the door for vacation, and the other is typing
> on a keyboard while my hands are busy with my CSS books.  Is
> there a way to
> text to align vertically?  In Excel, for instance, there is an
> option on the
> font properties so that text
>
> L
> O
> O
> K
> S
>
> L
> I
> K
> E
>
> T
> H
> I
> S
>
>
> Can I get this effect in CSS?  I have a helaciously wide table to display
> and am trying to buy some horizontal real estate because it is the column
> headings that are making it so wide.  Am hoping I don't have to
> do something
> like break each word into individual characters with <BR> in between.
>
> thanks everyone
> -reed
>
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to