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
Post a Comment