Of course you can do it just with CSS
.
Add this code to your CSS file:
border: none;
color: transparent;
text-shadow: 0 0 0 gray;
text-align: center;
&:focus {
outline: none;
}
Here you have the SOURCE and a DEMO
I can only say you that you can achieve this by applying the color through css :
<input type="text" style="color: transparent;text-shadow: 0 0 0 red;" />
FIDDLE DEMO
Otherwise there is no way to style the text cursor with CSS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With