/ Published in: CSS
URL: http://www.nealgrosskopf.com/tech/thread.asp?pid=5
Change selection color using CSS. Works in most modern browsers except for IE.
Expand |
Embed | Plain Text
::selection { background: red; color: white; } ::-moz-selection { background: red; color: white; }
Comments
Subscribe to comments
You need to login to post a comment.

Kind of nice, doesn't validate with W3C though.
The -moz selector is still in beta stage for firefox but the ::selection selector is valid CSS3. The CSS validator hasn't been update yet for CSS3.