HTML/CSS/IE Firefox/ moz selection
::selection and ::-moz-selection
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html>
<head> <style type="text/css"> ::selection { backgroud: crimson; color: pink; } ::-moz-selection { background: crimson; color: pink; } </style> </head> <body>
Some paragraph text.
Some more paragraph text.
Even more paragraph text.
</body>
</html>
</source>