I have contenteditable div on which i have file drop and copy-paste image event. By using the color:transparent i am able to hide the blinking cursor on chrome browser. but in IE i came to know "The color of the text cursor in an input on IE is always the inverse of the background color". Source:How do I change the color of the text cursor in an input field in IE?
Is there any alternative way to disable a cursor or change the speed of blinking cursor so it looks like hidden in IE.
You can do it in CSS with:
caret-color: transparent
Doesn't work in IE though. Here is browser support chart.
You can do this for IE with this hack:
color: transparent;
text-shadow: 0 0 0 #333333;
You can replace the color (#333333
) with whatever text color you need.
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