Form Textbox Problems - Please help

Discussion in 'Programming' started by flash902007, Sep 13, 2007.

Thread Status:
Not open for further replies.
  1. #1
    Hey Guys,

    I have created a form on one of our company's contact us pages, the problem is the form's comments box isnt changing size. for example we can specify the amount of characters in size a one line box is and it works fine, however when changing the box from a one line to a multi-line box, the box will not go any wider than about 32characters in width.

    Can anybody tell me what im doing wrong, or give me an idea of what the problem is please?

    here is the code for that box:

    <td colspan="2"><div align="left">
                                    <textarea name="enquiry" cols="75" class="boxtext" id="enquiry"></textarea>
                                  </div></td>
    Code (markup):
     
    flash902007, Sep 13, 2007 IP
  2. sea otter

    sea otter Peon

    Messages:
    250
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You might have some CSS somewhere limiting the width for the .boxtext class or #enquiry ID, both of which are attributes of your textarea.
     
    sea otter, Sep 13, 2007 IP
  3. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Why do you have a textarea nested inside a div nested inside a table?

    Posting the URL would help but if you use firefox there are plenty of web designer add ons that allow you to look at a single element and see all the attributes that are "suppose" to apply and which are over riding which.
     
    AstarothSolutions, Sep 14, 2007 IP
  4. flash902007

    flash902007 Banned

    Messages:
    750
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hey guys,

    thanks for both your replies. upon installing some addons that Astarothsolutions pointed out, i found out my problem and Sea_otter pointed it out too. there was a CSS element that was restricting the size of my box, so now all sorted.

    thanks guys.
     
    flash902007, Sep 15, 2007 IP
Thread Status:
Not open for further replies.