Solved

Wrap text problem

Posted on 2008-06-10
5
472 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
email validation 9 61
Navigation Menu Does Not Show on iPad 4 56
.CSS HTML Help 3 53
Disabling a Faux Submit Button 4 36
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
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.
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…

738 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