You are here: <pre> and wordwrap « HTML « IT news, forums, messages
<pre> and wordwrap

Posted by Christoph on 09/23/06 19:16

I have a large amount of text that is getting pulled from a file. It looks
something like this:

'large amount of text 90+ characters long

large amount of text 90+ characters long

large amount of text 90+ characters long'

If I don't enclose the text in a <pre> tag, all the CRLFs are stripped and
all the text runs together. If I do put it in a <pre> tag, the text goes
off the right side of the screen and causes a scroll bar to appear on the
browser (due to where the text is positioned, by necessity, on the page).
So is there something I can do, using CSS or anything else, that gives me
the best of both worlds? That will (effectively) keep the CRLFs and also
wrap the text?

thnx,
Christoph

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация