Skip to content

Instantly share code, notes, and snippets.

@trumball
Created May 24, 2013 13:11
Show Gist options
  • Save trumball/5643404 to your computer and use it in GitHub Desktop.
Save trumball/5643404 to your computer and use it in GitHub Desktop.
Custom Text Selection Some newer web browsers will allow you to define the highlight color on your webpage. This is set to light blue by default, but you can setup any color value which tickles your fancy. This snippet includes the typical ::selection target along with vendor prefixes for Webkit and Mozilla.
::selection { background: #e2eae2; }
::-moz-selection { background: #e2eae2; }
::-webkit-selection { background: #e2eae2; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment