Positioning input tag cursor after resizing

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Positioning input tag cursor after resizing



I have a simple input tag in a form element


<form>
<input type="text" name="" value="">
</form>



I wanted the input tag to look really big. So I add this:


input {
height: 300px;
}



However, the problem which bugs me is that the cursor of the input tag is located exactly at the centre of the height.



I want the cursor to be at the very top. How do I position the cursor?





how about using a <textarea> instead?
– William Chong
7 mins ago


<textarea>





An input will only take 1 line of text (hence the cursor is vertically centered), no matter how big it is, so instead, use a textarea
– LGSon
7 mins ago




input


textarea





As they said you should use a textarea tag to handle better your problem.
– Natarr
4 mins ago





@user2796515 Have you tried if that works? ...if you are gonna help, make sure what you suggest will have an effect, which that won't.
– LGSon
2 mins ago









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

WAVL8 QJcB5zuI qSABmLM,L3KqV zgwbgyGaO
e45MUUOSPY5zbq,0bHL6PlRz tW8cc,h7,n3b4jRojXy,9bC,lPzqx cjG mk9XkvJ3Zto mg,3ig

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

Visual Studio Code: How to configure includePath for better IntelliSense results