Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Force a break or wrap on a string output

Posted on 2013-11-25
2
Medium Priority
?
299 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Amazon Web Services EC2 Cheat Sheet

AWS EC2 is a core part of AWS’s cloud platform, allowing users to spin up virtual machines for a variety of tasks; however, EC2’s offerings can be overwhelming. Learn the basics with our new AWS cheat sheet – this time on EC2!

Question has a verified solution.

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

This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
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 is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

722 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