2005
Use CSS to Change Highlighted Text Style
Sponsored Links
There are several interesting style on Mozilla’s specific CSS. One of the most interesting trick is changing the style of the text when user highlighted the text using -moz-selection property. Look below:
[css]::-moz-selection{
background-color: #ff0000;
color: #fff;
}[/css]
now when user selected or highlighted any text, the background color will change to red (#ff0000) and the text color is white (#fff). I used that style on this site so simply highlighted any text here and see the result :))
And while you're here, why don't you check out our other articles:
Pssst! Most people are coming to this page searching for:
We are pleased to offer you this exciting, new, and entirely free professional resource. Visit our 


