HTML and CSS Reference
In-Depth Information
browser has to give, and the browser window can be maximized if more space is required.
textarea { width: 90%; }
Height depends heavily on what information the form is requesting. However, 6 lines is usually the minimum I'd
allow, and 12 are probably better for small amounts of text such as mailing addresses and brief messages. For
serious writing, such as for web mail and blog comments, go taller: 20, 24, 36, or even 40 rows high. I don't
suggest going so tall that the text area fills the page. It will scroll if it has to, and there's likely to be other
content on the page that the user will want to see at the same time. However, it's simply easier to write when
you have a larger window on your text rather than squinting at it through a four-line peephole. For example:
<textarea name="problems" id="problems"
cols="80" rows="36" ></textarea>
If in doubt, err on the side of too much room rather than too little. It's no big deal if the user has some blank
space in the form, but it's much more troublesome if they can't fit the text. Always allow for extra room. Many
users will have different, larger fonts than you do, whether because of different platforms, different preferences,
worse eyesight, or other reasons.
Search WWH ::




Custom Search