|
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
Navigation:
[Reply to this message]
|