+ Reply to Thread
Results 1 to 6 of 6
Like Tree1Likes
  • 1 Post By essellar

Thread: Create Textarea

  1. #1
    gdebojyoti.mail96 is offline x10Hosting Member gdebojyoti.mail96 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    57

    Create Textarea

    I want to create a text box having multiple number of rows which would accept multi-line input from a user.

    Apparently, the HTML tag <textarea> seems to be a likely solution.

    But there is a problem with it.

    The textbox created by using textarea has a sort of bug or something, due to which a viewer can change its shape by dragging its bottom right corner.

    But I don't want that. I want a text box which will have a fixed size that can be predetermined by me.

    Looking forward to some help from you guys. And thanks in advance!


    Regards,
    Debojyoti Ghosh.

  2. #2
    Teensweb is offline x10 Lieutenant Teensweb is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    352

    Re: Create Textarea

    It's not a bug, its a feature!
    If you wanna turn that off jus add style="resize: none;"
    BTW, do you know that there are some things called search engines? Before posting any questions on this forum we expect that you do some research on your topic! For example just googling "textarea noresize" would have solved your problem!
    Please read the thread Programming Help Rules and Guidelines before posting further threads!
    Last edited by Teensweb; 06-25-2011 at 09:26 AM.

  3. #3
    essellar's Avatar
    essellar is offline Community Advocate essellar has a spectacular aura about
    Join Date
    Feb 2010
    Location
    Toronto, Ontario, CA
    Posts
    1,153

    Re: Create Textarea

    You know, it's not generally a good idea to mess with the users' ability to use the tools they're used to. They know what they want to do; you don't. Nor do you know how much they know about their system in general -- they may know how to resize a textarea and use a mouse to select a large swath of text, but may be utterly unaware that they can do the same thing with the shift and arrow keys in a smaller textarea. Your job as a developer/designer is to make the users' lives easier, not to unreasonably enforce pixel perfection in their browsers.

    If your page falls apart when a texarea is resized, then work on the rest of your page instead of restricting the user. Front-end (UI) work is hard. Get used to it.
    misson likes this.
    “Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
    "It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)

  4. #4
    jim55 is offline x10Hosting Member jim55 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    3

    Re: Create Textarea

    also, you should bear in mind that 'resize= "none" does not work across all browsers, if you decide to go down that route.

  5. #5
    anpss.guercif15 is offline x10Hosting Member anpss.guercif15 is an unknown quantity at this point
    Join Date
    Feb 2011
    Posts
    4

    Re: Create Textarea

    yes great

  6. #6
    grvgoyal3523 is offline x10Hosting Member grvgoyal3523 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    2

    Red face Re: Create Textarea

    agreed with TEENSWEB

+ Reply to Thread

Similar Threads

  1. Getting text out of a textarea
    By jakeselectronics in forum Programming Help
    Replies: 1
    Last Post: 10-21-2009, 07:55 AM
  2. textarea and link
    By liguehs in forum Programming Help
    Replies: 12
    Last Post: 07-31-2009, 04:07 PM
  3. PHP textarea problems
    By djcustom in forum Programming Help
    Replies: 6
    Last Post: 04-09-2009, 06:29 PM
  4. I can't select my textarea.
    By Yvette in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 10-30-2007, 10:24 AM
  5. How do you make a textarea with a scrollbar?
    By Album in forum Tutorials
    Replies: 10
    Last Post: 10-23-2005, 04:17 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers