tags:

views:

110

answers:

2

how to wrap the text in textarea so that word will not be overflown to rightside and written in new line.

+3  A: 

Set the wrap attribute to "hard" like this:

<textarea 
    cols="10" 
    rows="4" 
    wrap="hard"></textarea>
Andrew Hare
A: 

According to a www.htmlref.com, the textarea wrap attribute is not fully standardized, but wrap="off | physical | virtual" is supported by IE and wrap="hard | off | soft" is supported by Netscape 4 (whatever that means for modern browsers).

ssc