textarea question

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Sevengraff
Forum Contributor
Posts: 232
Joined: Thu Apr 25, 2002 9:34 pm
Location: California USA
Contact:

textarea question

Post by Sevengraff »

How can I control the height and width of a <textarea> using CSS?
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

rows= and cols=
which are relative to the font and font-size you are using.

There is no other way.
User avatar
Friday
Forum Newbie
Posts: 5
Joined: Wed May 21, 2003 4:16 am
Location: China

Post by Friday »

use CSS also :)

<textarea style="width:*;height:*"><textarea>
User avatar
Sevengraff
Forum Contributor
Posts: 232
Joined: Thu Apr 25, 2002 9:34 pm
Location: California USA
Contact:

Post by Sevengraff »

thanks, i found specifiying width & height in px to work the best.

<stlye>
textarea {
width: 250px;
height: 250px;
}
</style>
Post Reply