dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: textarea tag with flexible width/cols ?

  1. #1
    Join Date
    Sep 2005
    Posts
    45

    textarea tag with flexible width/cols ?

    Hi all,

    I have a textarea tag that has 60 columns and say 4 lines... my issues is that I would like the texarea to have flexibility to change width (I incapsulate it in a window with an iframe I can change width) and reduce to a variable numebr of coulumns with wrap. i.e. another way of saying this is IMAGINE a textarea with cols="100%"... get my gist ?

    My target browser is IE6 but more portability is welcome...

    Thanks in Advance

  2. #2
    Join Date
    Sep 2005
    Location
    in my house
    Posts
    234
    HTML Code:
    <textarea style="width:50%;height:50%">asdf</textarea>
    tested on ie and ff

  3. #3
    Join Date
    Sep 2005
    Posts
    45
    Yes it works fine. I was misguided because I read somewhere that the col parameter of the textarea tag is a required parameter. But I dont see any reason not to use it after some testing.

    Thanks for your help on this.
    Cheers,
    Tuka

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles