Change textarea cursor color in the textarea
Asked Answered
M

2

6

I have the following textarea:

Textarea example

How can I change the inner cursor color?

Mansuetude answered 2/12, 2013 at 9:6 Comment(4)
I dont know. Might be there is no way since cursor is not part of web page but part of OS and each OS will define look and colour of standard cursorClaudineclaudio
Here is a link that will answer this: #6093463Murrell
You should read this : https://mcmap.net/q/165718/-styling-text-input-caret . Just to help in your search, it is caret and not cursor. ;)Pitch
Possible duplicate of Styling text input caretEvonevonne
V
2

I know that the question is old and out of date. But the question remains unanswered. Let's fix it.

Сaret-color is probably what you were looking for.

textarea{
caret-color: red;
}
<textarea>
</textarea>
Velleman answered 1/10, 2021 at 7:49 Comment(0)
B
-1

A custom caret can be used with either an .ani or .cur file

textarea {
 cursor: url(cursor.cur);
}

or

textarea {
 cursor: url(cursor.ani);
}

For more details regarding carets

or

.cursor { font-size: 12px; background-color: red; color: red; position: relative; opacity: 0.5; }
Brettbretz answered 2/12, 2013 at 9:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.