How to change text selection styling in CSS3
13 Dec 2014The ::selection
CSS pseudo-element applies rules to the portion of a document that has been highlighted (e.g., selected with the mouse or another pointing device) by the user.
Note that Only a small subset of CSS properties can be used in a rule using ::selection
in its selector : color
, background
, background-color
and text-shadow
.