html - Textarea word wrap only on line breaks -


so, have textarea filled text db user edit. text db contains line breaks in (\r\n). textarea line wrap on line breaks. i've messed around different white-space attributes, none seem work. right now, have:

textarea {     width: 60em;     height: 40em;     white-space: pre-line;     overflow: auto; } 

it break on line breaks, breaks when text on line goes longer 60em. how break on line breaks?

as andi pointed out, answer here: html textarea horizontal scroll

<textarea wrap="off"></textarea> 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -