Turn Off Textarea Wrapping In XHTML
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
- Save this article for later, bookmark it!
- del.icio.us digg newsvine blinklist magnolia
Comments are closed.
Comments have been close for this post.
Latest Photos
Good Reading
- Mark Cuban's 12 Rules for Startups | Entrepreneur.com
- Welcome to Spreedly! | Spreedly
- Recurring Billing, Subscription Billing, Web 2.0 and SaaS Billing - Chargify
- Stripe
- The Best Exercise for Legs and Butt: Dumbbell Squats - YouTube
- Tips & tools for journalists who want to learn programming skills | Poynter.