I have problem with carriage return, line feeds and spaces. I have one textarea that i write into and i try to output it to div-element. It becomes a big line of words without showing the original text's style. (new line, extra spaces, carriage return don't show up). How can i fix this problem?
08-20-2009, 09:50 PM
mrhoo
Set the div's css white-space property to 'pre'. (preserve whitespace) Or use a pre element instead of a div.
08-21-2009, 06:01 AM
massalexx
thx for the reply. it did the job in FF but not in IE. Some ideas to get it work in IE?