PDA

View Full Version : Changing highlight colour



wewt
13-02-2008, 04:11 PM
Simple bit of CSS to change the colour when highlighting text:

*::-moz-selection {
background: #000000;
}

::selection {
background: #000000;
}

Top part is for Firefox, the bottom for Safari. Doesn't work on Internet Explorer and when highlighting images.

Example - http://www.fourkicks.org (http://www.fourkicks.org/) - The text highlights a blue/green/turquoise colour.

Want to hide these adverts? Register an account for free!