tags:

views:

25

answers:

1

I have an input field, a user will write text inside but when the text is to long it just extends horizontally instead of dropping down vertically.

I tried: overflow: hidden; word-wrap: break-word;

and I had no luck. Any other suggestions on how to accomplish this?

+1  A: 

I think you should use a multiline input field as TextArea:

http://www.w3schools.com/html/showit.asp?filename=tryhtml_textarea

http://htmlhelp.com/reference/html40/forms/textarea.html

Sample code:

<textarea rows="10" cols="30"></textarea> 
Leniel Macaferi
I would looooove to use a textarea but I am being forced to use an input field.
Xtian
Well I think that using an input field you can't get this behavior. At least I've never seen that before. That's why TextArea exists for.
Leniel Macaferi
"Forced" in what way?
Stephen P