Positioning input tag cursor after resizing
Clash Royale CLAN TAG#URR8PPP
An
– LGSon
7 mins ago
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
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?
<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.
how about using a
<textarea>
instead?– William Chong
7 mins ago