Change Text Selection Color

Submitted by:Tim Kelly

Date added:07 April, 2012

Category:CSS

CSS code to change Text Selection Color

Tags: text color

Code Snippet:

/* Mozilla based browsers */

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


/* Works in Safari */

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

Comments