I have a bit of unusual case that requires me to represent typing caret with a singular HTML tag. I am trying to use for this. However, it looks like no matter what CSS I set, the tag is not visible in the UI.
Here is what I’ve tried:
<wbr style="
display: block;
width: 10px;
height: 10px;
background: #f00;
visibility: visible;
">
2
Answers
Use a with display:inline block.
set the width and height
Add one animation for blinking effect.
@keyframes blink {
0%, 100% { background: #f00; }
50% { background: transparent; }
}
use this, i think your problem is solved.