Solved

Force a break or wrap on a string output

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now