How to change the color and style of '|' sign when entering input with the type text? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to change the color and style of '|' sign when entering input with the type text?

I just know a bit of html and css. I have the following code, https://code.sololearn.com/W0q9TF51BCQI/?ref=app I want the input field to be active as website is opened and I want to change '|' this sign, when typing in the input, it should be an underline like stuff that will stand at the very last letter typed in, and will appear and disappear for a short amount of time (as it happens with that '|' sign). Also the color of that should be indepented from text's color. Edit: not exactly under the last letter typed but after that letter, it will stand under emptiness.

19th Aug 2020, 9:53 AM
Mustafa K.
Mustafa K. - avatar
6 Answers
+ 1
You can only change the color of that cursor using caret-color property ,if you want some different looking cursor like an blinking underline stuff you need to make a custom one or look for the library
19th Aug 2020, 10:10 AM
Abhay
Abhay - avatar
+ 1
Sorry I didn't get your question please??
19th Aug 2020, 10:00 AM
Nehimya Mesfin
Nehimya Mesfin - avatar
0
There is a long vertical sign that stands after the letter which you last typed in when typing in something right? I want to change its shape and color.
19th Aug 2020, 10:03 AM
Mustafa K.
Mustafa K. - avatar
0
On which course are you now.... css?
19th Aug 2020, 10:05 AM
Nehimya Mesfin
Nehimya Mesfin - avatar
0
You can get answers to your questions in the link below, but don't answer all of them just your hard one
19th Aug 2020, 10:16 AM
Nehimya Mesfin
Nehimya Mesfin - avatar
0
I think you will be able to answer it
19th Aug 2020, 10:17 AM
Nehimya Mesfin
Nehimya Mesfin - avatar