Skip to main content
Home / Code Snippets / CSS / Change Text Selection Color
::selection {
  background-color: #FFA;
  color: #000;
}

This browser support data is from Caniuse, which has more detail. A number indicates that browser supports the feature at that version and up.

Desktop

ChromeFirefoxIEEdgeSafari
42*9123.1

Mobile / Tablet

Android ChromeAndroid FirefoxAndroidiOS Safari
84684.4No

(More info)