dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: textarea output problem

  1. #1
    Join Date
    Aug 2009
    Posts
    38

    textarea output problem

    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?

  2. #2
    Join Date
    Feb 2006
    Posts
    2,927
    Set the div's css white-space property to 'pre'. (preserve whitespace) Or use a pre element instead of a div.

  3. #3
    Join Date
    Aug 2009
    Posts
    38
    thx for the reply. it did the job in FF but not in IE. Some ideas to get it work in IE?

  4. #4
    Join Date
    Aug 2009
    Posts
    38

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles