I've tried this, but it won't work (in Chrome and IE) in case of textarea :(
::-moz-selection {
background: #b3d4fc;
text-shadow: none;
}
::selection {
background: #b3d4fc;
text-shadow: none;
}
Are there ary way to make it possible?
CSS or jQuery any how?
This is only supported in Firefox (and Safari?).
You can do a workaround. Instead of textarea use div with contenteditable.
See: http://jsfiddle.net/VF4tb/1/
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