How to increase input text and break line automatically

Asked

Viewed 12,122 times

1

Hello, as you can see in the image, the input is larger than the part I type the text and if I keep typing it does not break the line, what should I do ??

inserir a descrição da imagem aqui

  • Is that an input or textarea? I think you want to use textarea if you want line break... What do you see in CSS that might be doing this?

  • Is a text input.

1 answer

5

You can’t. The only HTML element made to have multiple lines is the <textarea>:

<textarea cols="30" rows="5"></textarea>

From HTML 5 you can use the attribute wrap="hard" to force the automatic line break.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.