How do you make an ASP field wrap to multiple lines when it is written with...

  • Thread starter Thread starter celldude92
  • Start date Start date
C

celldude92

Guest
...Response.Write? Hi. I have a memo field in a database. There is a form on my website that allows users to input paragraphs into the database. I use TextArea to create these form fields. The information posts to the database perfectly; however, when you go to the "Display Paragraph" page that I created, it shows the entire paragraph on one line going off the side of the page for quite a while. I used Response.Write (recordset("FieldName"). Is there any way to make the paragraph wrap at the margins of the page other than putting it in some sort of scrollable read-only form field? Thanks in advance.
 
Make it like <p style="position:absolute; width:YourWidth; height:YourHeigth">YourText</p>
OR
<div style="position:absolute; width:YourWidth; height:YourHeigth">YourText</div>
OR
<div style="position:absolute; width:YourWidth; height:YourHeigth"><p>YourText</p></div>

In either of case; YourWidth should be following the % or px without ne gaps b/w the value and the unit.
Later you can set other css properties; like make the div/paragraph scrollable (if required).
 
Back
Top