Change Text Selection Color Using CSS


/ Published in: CSS
Save to your folder(s)

Change selection color using CSS. Works in most modern browsers except for IE.


Copy this code and paste it in your HTML
  1. ::selection { background: red; color: white; }
  2. ::-moz-selection { background: red; color: white; }

URL: http://www.nealgrosskopf.com/tech/thread.asp?pid=5

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.