Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Force a break or wrap on a string output

Posted on 2013-11-25
2
Medium Priority
?
307 Views
Last Modified: 2013-11-25
I am using something like this to output some data:

<cfoutput query="myquery">#myvariable#&nbsp;</cfoutput>

This outputs something like this:

happy sad nice car plug phone desk monitor table etc.....

I would like to make it word wrap at some point but it just runs off of the page. I tried putting the output in a table cell and sizing that cell. I also tried putting it in a div and giving that div a width but the string still just outputs right off the side of my screen and outside of my web template.

Could someone assist with a way to make this wrap?
0
Comment
Question by:earwig75
2 Comments
 
LVL 39

Accepted Solution

by:
gdemaria earned 2000 total points
ID: 39675813
Change the non-breaking space to a regular space and it will wrap..

<cfoutput query="myquery">#myvariable#&nbsp;</cfoutput>

to

<cfoutput query="myquery">#myvariable#     </cfoutput>
                                                                             ^^
0
 

Author Closing Comment

by:earwig75
ID: 39675845
LOL thanks. I think I am braindead today.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question