I want to draw a caret in a div (not a text area, neither a contenteditable). I know exactly the position where the caret must be drawn (between two characters). I through inserting this character |
, but of course, it shifts the characters, like this:
my text ...
my |text ...
And of course, my character-caret do not blink.
I read carefully the following question, but it's more about general libraries for simulating alternative or multiples carets.
How to simulate an artificial caret in a textarea?
My concern is more about displaying the blicking caret without changing the content. I sense it is feasible with some css tricks, but I don't know where to start.