[thelist] Wide Textarea Form Element

David McCreath mccreath at ak.net
Wed Apr 24 19:11:01 CDT 2002


Hi, Mark --

You can use an inline style attribute that works pretty well in most
newer browsers (5+, I believe).

<td><textarea style="width:100%"></textare></td>


David

Mark Limburg wrote:

> Howdy,
>
> Has anyone a way to expand a textarea form element to fit the width of a
> table element?  IE:
>
> <td>foo</td>
> <td>bar</td>
> <td>bloop</td>
> <td width="100%"><form><textarea></form></td>
>
> As the form width is set to 100%, it's a variable width, so the textarea
> would need to be also.  I suspect I may be able to perform some
> javascript magic, by inserting a <img width="100%"> and mapping the
> width of the img ... I'll have to see if I can find that code.
>
> Any ideas warmly welcome.
>
> Mark
>





More information about the thelist mailing list