Marked text color

This snippet will allow you to change the color when marking, or 'highlighting' in other words, text in your browser.

Note: IE7, IE8, iOS Safari and Android Stock Browser do not support this snippet!

/* COLORED MARKED TEXT */
::selection {
    background: #2ecc71; /* Safari */
    color: #fff;
}
::-moz-selection {
    background: #2ecc71; /* Firefox */
    color: #fff;
}
Copy to clipboard