It's a CSS3 declaration, called ::selection, which is modified in a slightly different way for Firefox than for other browsers that support it.
While talking about CSS3, let's just say that also most of the other CSS3-only cool features are declared slightly different for Firefox than for other browsers, in terms of:
-moz-SOMETHING for Mozilla [b]vs.[/b] SOMETHING for the others
Alrighty then
::selection {
background:#CFE2E9;
color: white;
}
::-moz-selection {
background:#CFE2E9;
color: white;
}
Firstly, I changed the background color of the selection (i.e. not the letters) to a lighter shade of blue, and then the letter color to white. The second one was for Mozilla Firefox (everything is the same, except for the name).
If you'd like to assign this to a <p> tag, for instance, you'd use something like this:
p.red::selection {
background: red;
}
p.red::-moz-selection {
background: red;
}
And I just assigned the selection color to red for a <p> tag with an class of red.
You could do the same steps for any other part of the site, but I must warn you that I'm not sure if this works in IE 6(probably not). I somehow remember that IE7 does understand this selector.
















