Modifying the height of the text field while keeping the 'focus' of the field at the top

Asked

Viewed 36 times

1

Good morning, I am with a simple doubt, I did some research and could not find anything related, I do not want to believe that this is a 'bug'.

inserir a descrição da imagem aqui

So, the typing of the field starts only in the middle of it, no matter how many padding or margin I give internally, the idea is to use a typeahead field with altered height with typing in the right place, unfortunately in this case I can’t use a textarea and use the attribute "Rows", I need it to be in the text field...

So, does anyone know how I change it ? Thanks already ! Please excuse the question 'Noob'. rs

  • Unused padding-bottom: 100px?

  • Why does it need to be within an input and not in a textarea? I did a test here with padding, and it worked well, the problem is that it will not jump to the second line when it reaches the limit of the first, will always extend horizontally.

  • Paul, because as you can see in the description I use a typeahead, is a text field that uses search tools.

  • Thiago Santos, the padding-bottom solved the position, but created me another problem that is the line break when arriving at the end of the field, does not have any way to simulate a textarea using a text? T_T

  • Take a look at this: https://github.com/yuku-t/jquery-textcomplete and maybe the right approach is: How to use Typeahead with Textarea?

  • Yes, you’re right, thank you! I will delete the topic so as not to "stain" the community with useless things.

  • Why do you think it’s useless ? @Lincolnbinda, I consider it a doubt that anyone who has started can have... Even if you find the solution and post an answer you would be enriching the community even more...

  • @Lincolnbinda As far as I know, only with padding-bottom even.

Show 3 more comments
No answers

Browser other questions tagged

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