Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Wrap text problem

Posted on 2008-06-10
5
Medium Priority
?
475 Views
Last Modified: 2008-06-18
Hello Experts.
I have a problem in design view when i have a dynamic text output like:
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu.
That's why i did use a code to wrap the text above(if somebody want's to make only a joke ):
<tr><td colspan="2"  height="500" width="240">
<cfset limit = 30>
<cfloop condition="REFindNoCase('\S{#limit+1#}',qVerg.Description)">
<cfset qVerg.Description = Insert(" ",qVerg.Description,REFindNoCase('\S{#limit+1#}',qVerg.Description)+limit-1)>
          </cfloop>
                                          <cfoutput>#qVerg.Description#</cfoutput>
</td></tr>
I don't know why but the code is not working and the text don't wrap.
That what i really want is that i don't want more than 30 characters in 1 line.
Any help?
0
Comment
Question by:Panos
[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
  • 3
5 Comments
 
LVL 6

Expert Comment

by:JapyDooge
ID: 21750726
maybe you can output it in a textarea.

this will have a fixed size. no wordwrap but scrollbars.

or a fixed div with scrollbars
0
 
LVL 2

Author Comment

by:Panos
ID: 21750848
Hello JapyDooge.
Thank you for help but i prefer something that don't allows more that 30 characters in one line.
I have allready tried to do this with textarea but i don't like the result in design.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 21751067

<table>
<tr><td colspan="2" style="height:500px; width:240px;"> 
<span style="width:100%; overflow:scroll">
I have a problem in design view when i have a dynamic text output like:
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu.uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu.uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu.uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu.
That's why i did use a code to wrap the text above(if somebody want's to make only a joke ):
</span></td></tr></table>

Open in new window

0
 
LVL 2

Author Comment

by:Panos
ID: 21751247
Hi mplungjan
This code :<tr><td colspan="2"  height="500" width="240">
<span style="width:100%; overflow:scroll">
<cfoutput>#qVerg.Description#</cfoutput></span>
</td>
has for me no result.
The mistery is that the same code (the first in the question) is wopking for me in another page.
0
 
LVL 2

Accepted Solution

by:
Panos earned 0 total points
ID: 21751323
Hi again.
I found the problem
The ... <cfoutput>#qVerg.Description#</cfoutput>....was in a <cfoutput query.....>  ....</cfoutput>and it was not working .Now i deleted the <cfoutput> and </cfoutput> and it is working:
<cfoutput query.................................>
<cfset limit = 30>
<cfloop condition="REFindNoCase('\S{#limit+1#}',qVerg.Description)">
<cfset qVerg.Description = Insert(" ",qVerg.Description,REFindNoCase('\S{#limit+1#}',qVerg.Description)+limit-1)>
          </cfloop>
                                          #qVerg.Description#.....................................<cfoutput>
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses four methods for overlaying images in a container on a web page
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…

597 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