/ Published in: CSS

Change the color and background color of selected text using only css. Compatible with Firefox and Safari, but not Internet Explorer
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
::-moz-selection { background:#6374AB; color:#fff; } ::selection { background:#6374AB; color:#fff; }
URL: http://www.quirksmode.org/css/selection.html
Comments
