How can I remove the caret from a <input type="text"> element only using CSS and not JavaScript?
<input type="text">
Of course you can do it just with CSS.
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
Collected from the Internet
Please contact [email protected] to delete if infringement.
Click to generate QR
Comments