I want to change the cursor color & width and if possible change it to "__" this type of cursor.
Can we do it through CSS or jQuery
CSS
xyz {cursor-color:red;}
I know it's probably the most idiotic code.
I want to change the cursor color & width and if possible change it to "__" this type of cursor.
Can we do it through CSS or jQuery
CSS
xyz {cursor-color:red;}
I know it's probably the most idiotic code.
You can change the colour of the text cursor using the 'caret-color' CSS property. See here for details.
For example:
.text-box
{
caret-color: red;
}
The only way to change the cursor on a webpage is to use CSS (which can be edited through jQuery):
.special-cursor {
cursor: vertical-text;
}
The above will convert the cursor to a vertical-text cursor, closest thing I could find to an underscore. See this link for all the possibilities.
The only way to change the color of the cursor is by uploading your own image and linking to it in CSS
.colored-cursor {
cursor: url(hyper.cur), auto;
}
Here, "auto" is the default/backup in case url()
is not supported.