Change Text Selection Color

December 29, 2012 // In: CSS

One of the coolest CSS3 declaration (::selection) that you can use to change the highlight colour of the selected text. You can define text and background colour of selected text.

Demo Try it,Its free!

Here is the Sample code:

The above sample will change the selection color of paragraphs etc. If you want to change the selection color for any specific selector then you can add selector in it.

Demo:

Awesome CSS3 Buttons