Change Text Selection Color

Submitted by:Jhon Jhon

Date added:16 March, 2013

Category:CSS

CSS code example to change Text Selection Color

Tags: selection color

Code Snippet:

/* Mozilla based browsers */

::-moz-selection {
background-color: #FFA;
color: #000;
}

/* Works in Safari */
::selection {
background-color: #FFA;
color: #000;
}
 
 

Comments