I’m trying to control the caret size in a html textarea. The size seems to default to the line height, is there a way to manually control it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There isn’t any way to change how the caret looks in a textarea. If you want to do that, you’ll have to use something other than a textarea, such as a div or a canvas element and control everything with JavaScript.