[thelist] TEXTAREA resizes

Edwin Horneij edwin at lanset.com
Fri Feb 15 13:42:01 CST 2002

I have tested this with various versions of IE 4 and 5 and NS 4 and 6
under Mac OS and Windows and it has always worked for me. No idea
about the other browsers or platforms out there. Sloppy of me, I
know, but still.

With CSS you can set the width of the textarea to a percentage of the
container's width:

textarea { width:80%; }

In the textarea tag itself you can set the cols attribute to some
compromise value for older browsers. CSS-compliant browsers will use
the value set in the stylesheet.

At 10:28 AM -0800 2/15/02, Matthew Koundakjian wrote:

>I have a page which contains a form consisting of a large textarea and a
>submit button.  I'd like to, if possible, set the size of the textarea
>based on the client's window size, either dynamically on the client side or
>if possible, through server side calculations.  We're using ASP for this.

More information about the thelist mailing list