Modulor. Custom Software Solutions.
Share.
Facebook | Twitter | LinkedIn
Posted by: Gustavo on January 11, 2011
Category: CSS
For those designs that need to have an "edge" on the most minimal of details, we found this little piece of code that will help you style selected text on a webpage.

::-moz-selection {
background:#6374AB;
color:#fff;
}

::selection {
background:#6374AB;
color:#fff;
}

The only disadvantage is... we'll you know it... its not IE compatible :(