Set Text Selection Color


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



Copy this code and paste it in your HTML
  1. /* Mozilla based browsers */
  2. ::-moz-selection {
  3. background-color: #FFA;
  4. color: #000;
  5. }
  6. /* Works in Safari */
  7. ::selection {
  8. background-color: #FFA;
  9. color: #000;
  10. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.