Solved

Force a break or wrap on a string output

Posted on 2013-11-25
2
277 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 500 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

This article  is about submitting  form through  ColdFusion.Ajax.submitForm to the action page and send a response back in JSON format which later can be decoded using ColdFusion.JSON.decode. By this way you can avoid the usual page refresh for subm…
Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

832 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