Reply to Re: problem with <pre> tag

Your name:

Reply:


Posted by Jonathan N. Little on 07/07/06 01:04

Kentor wrote:

Learn to quote please...not everyone views Usenet in Google Groups.

> well <p style="width:50%"> works... but the text is all sqweeshed into
> one big paragraph and there are no more new lines... its not output in
> the same way the user has entered it =/

Of course not P elements an not suppose to 'recognize' new lines!

> I want to output the information "as is" which was entered in a
> <textarea>, i just want to make sure its not wider than the screen...
> which is what happens in IE if i use <pre>...
>

Which screen size, the user can have many, can resize the window at any
time. Maybe way you want is put in a DIV and parse user input with PHP's
nl2br().


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

[Back to original 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

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