Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Sep 2012
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts

    input text with height?

    Is there a way to make an input text which has two lines.

    I know theres a textarea code, but it is resizeable (unless someone knows how to turn resize off?)

  • #2
    Regular Coder stevenmw's Avatar
    Join Date
    Jun 2007
    Location
    OK
    Posts
    497
    Thanks
    27
    Thanked 31 Times in 31 Posts
    Code:
    textarea { 
    resize: none; 
    }
    http://css-tricks.com/textarea-tricks/

  • #3
    New Coder
    Join Date
    Sep 2012
    Location
    Scottish Borders
    Posts
    36
    Thanks
    1
    Thanked 9 Times in 9 Posts
    Hi, do not understand why you would wish to do so but you can limit the available textarea through the form itself if required
    Code:
    <p><textarea name="comments" rows="2" cols="16" id="comments"></textarea></p>
    My normal would be to make textarea rows auto and adjust the cols to the width I have available for form. Jim


  •  

    Posting Permissions

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