SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Oct 2005
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using "width" with <textarea>

    This sounds exactly like the problem I need to solve. I have a form embedded in a table. Because I need different amounts of space for captions (which appear to the left of their fields) and the fields themselves, but still want a regular appearance to the whole thing, I've designed a table with fixed-width columns, then I make liberal use of "colspan" to have the contents occupy the appropriate width. For text fields, I specify "width='100%'", which causes the text fields to fill the number of columns I allocate for them. However, when I did the same thing with <textarea>s, they only expand to about half the size of the space, leaving me with a ragged-looking form. Right now, I'm using "cols" attributes to approximate the width of the space (but of course this depends on browser, font choices, etc.). According to what I've read on this thread, the "width='100%'" style for <textarea> should do the trick, but it's not. Any ideas?

  2. #2
    Function Curry'er JimmyP's Avatar
    Join Date
    Aug 2007
    Location
    Brighton, UK
    Posts
    2,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Sjhanna Please start a new thread and include links/code...
    James Padolsey
    末末末末末末末末末末末末末末末末末末末
    Awesome JavaScript Zoomer (demo here)
    'Ajaxy' - Ajax integration solution (demo here)

  3. #3
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Moved to a separate thread.
    Birnam wood is come to Dunsinane

  4. #4
    Function Curry'er JimmyP's Avatar
    Join Date
    Aug 2007
    Location
    Brighton, UK
    Posts
    2,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Tommy... Is sjhanna automatically subscribed to this thread then?

    Anyway, sjhanna, could you post a link to the page you're having a problem with?
    James Padolsey
    末末末末末末末末末末末末末末末末末末末
    Awesome JavaScript Zoomer (demo here)
    'Ajaxy' - Ajax integration solution (demo here)

  5. #5
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've notified sjhanna via PM.
    Birnam wood is come to Dunsinane

  6. #6
    SitePoint Member
    Join Date
    Oct 2005
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Link to site

    First, thanks for starting a new thread on this. I assumed it belonged under an existing thread, even though that was several months old.

    I'll post the link in a little while, but the page isn't currently on-line (when it didn't work as I expected, I took it off the site). To protect my client's confidentiality, I first want to "sanitize" it a bit. Right now, I'm fighting another fire (thanks to IE6, of course), but I should be able to either post the code directly or post a test page in a day or so.

    Thanks again for your willingness to help.


Bookmarks

Posting Permissions

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