css to color selection text and background in FF and Safari


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



Copy this code and paste it in your HTML
  1. ::-moz-selection{
  2. background:#cc0000;
  3. color:#fff;
  4. }
  5.  
  6. ::selection { /* Safari */
  7. background:#cc0000;
  8. color:#fff;
  9. }
  10.  
  11. code::-moz-selection {
  12. background: #333333;
  13. }
  14.  
  15. code::selection { /* Safari */
  16. background: #333333;
  17. }
  18.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.