File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes prob with pre tags Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "prob with pre tags" Watch "prob with pre tags" New topic
Author

prob with pre tags

Amit KumarS
Ranch Hand

Joined: Oct 10, 2003
Posts: 100
hi all,
i have a prob with <pre></pre> tag...
the data which i am getting from the database is having new line characters and i want it to be displayed as it is. thus i am putting the

<pre> </pre> tag with it. but the prob is that when i am trying to display the text which is very long then the width of the row in which the data is there increses. i want it to be wrapped.
can anyone tell me how this can be done.
thanks a lot in advance


****************************<br />In 24 hrs Earth rotates once on its Axis.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
You need to use CSS and a div surrounding your code to limit the width...


Eric
 
 
subject: prob with pre tags
 
Threads others viewed
How to display output in New Line using servlets
include contents of an .inc file as in HTML pages
bean:write and formatting text
prob with bean:write
Verbatim in Javadoc
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture