Epicserve

Turn Off Textarea Wrapping In XHTML

September 7, 2005 | 3:10 p.m. CDT

So you want to turn off word wrapping on a textarea box in XHTML; well so did I! Unfortunately, I wasn't able to find a way to do it that validates. I tried using just CSS with white-space: nowrap; and overflow: scroll which didn't work. I also tried using nowrap="nowrap". Finally, the only thing that worked was <textarea id="content" cols="100" rows="10" wrap="off">, which unfortunately doesn't validate. If anyone knows a better way of doing this that validates pleas let me know.

Related tags: textarea, Word, wrapping, XHTML

Comments are closed.

Comments have been close for this post.