CSS3 :: selection selector
CSS selectors complete reference manual
Examples
The selected text in red:
:: Selection
{
color: # ff0000;
}
:: - Moz-selection
{
color: # ff0000;
}
{
color: # ff0000;
}
:: - Moz-selection
{
color: # ff0000;
}
try it"
Definition and Usage
:: Selection selector matches the element is selected or the user's part is highlighted.
:: Selection can only be applied to a small number of CSS properties: color, background, cursor, and outline.
Browser Support
E9 +, Opera, Google Chrome and Safari support :: selection selector.
Firefox through its private property :: - moz-selection support.