Improving textarea usability in Internet Explorer with overflow: visible;
When programming for Internet Explorer, you can greatly improve the usability of textareas by using the style overflow: visible;
I recently had a project that required a lot of textareas on a page. When there is a lot of information in each of these textareas, it causes an annoying visual “bunching” for the reader, because each textarea has its own scrollbar, even though the page itself already has a scrollbar. You’ve probably seen pages that look like this:
Now look at how much better it looks (and feels) if you add overflow: visible; to the textarea styles:
Sadly, this technique doesn’t work with all browsers, but it doesn’t appear to hurt anything on other browsers, either. If you are building an intranet application on Internet Explorer, this simple tag can make a load of difference in page usability.
June 22nd, 2005 at 4:37 pm
This is awesome. A few tricks in addition to that.
You can specify the height of the box in em’s. EM is a unit that is equal to font’s height. So if you want your form to be 10 lines height, just speicfy height: 10em;
I also felt it’s a bit weird to type on the last line. It makes you feel that you are almost out of room. So I added one line padding at the bottom. You can’t type on that line, but it just adds that feeling of security
padding-bottom: 1em;
November 28th, 2005 at 9:44 am
Sorry for the VERY slow reply - got stuck in moderation!! Thanks for the additional point.