File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
Use of pre tag avoids word wrapping
Joined: Jul 26, 2005
Jun 13, 2006 16:49:00
I have used the pre tag to display dynamic content in pre-formatted text. But this avoids word wrapping which leads to horizontal scroll bar appearing in the screen. Is any other way to avoid this?
Joined: Nov 08, 2001
Jun 13, 2006 20:43:00
because that is what the pre tag does!
Look into CSS with word wrap and try setting a width.
I agree. Here's the link:
subject: Use of pre tag avoids word wrapping
Wrap attribute in PRE
Verbatim in Javadoc
Word wrpa problem in Mozilla
Formatting text coming from a text area
Word Wrap But ....
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014