Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-30-2012, 09:45 AM   PM User | #1
john6
New Coder

 
Join Date: Sep 2012
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
john6 is an unknown quantity at this point
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?)
john6 is offline   Reply With Quote
Old 09-30-2012, 11:02 AM   PM User | #2
stevenmw
Regular Coder

 
stevenmw's Avatar
 
Join Date: Jun 2007
Location: OK
Posts: 446
Thanks: 26
Thanked 30 Times in 30 Posts
stevenmw is an unknown quantity at this point
Code:
textarea { 
resize: none; 
}
http://css-tricks.com/textarea-tricks/
stevenmw is offline   Reply With Quote
Old 10-01-2012, 12:17 AM   PM User | #3
jamaks
New Coder

 
Join Date: Sep 2012
Location: Scottish Borders
Posts: 36
Thanks: 1
Thanked 9 Times in 9 Posts
jamaks is on a distinguished road
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
jamaks is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:20 AM.


Advertisement
Log in to turn off these ads.