Change Text Selection Color

Submitted by:Jimmy Kerson

Date added:21 February, 2011

Category:CSS

Change Text Selection Color

Tags: text selection color , text color , webtext color

Code Snippet:

/* Mozilla based browsers */
::-moz-selection {
background-color: #FFA;
color: #000;
}

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

Comments