Your browser (Internet Explorer 6) is out of date. It has known security flaws and may not display all features of this and other websites. Learn how to update your browser.
X
Post

Quick Tips – CSS: Change Text Highlight Color

Quick Tips is a series of posts designed to show some quick html, css and php tips that you may find useful in your every day work or personal projects.

With CSS, on the standards compliant browsers such as Firefox, Chrome or Safari, you can decide what color shade the highlighted text appears for users using the following CSS:

::selection { /* Safari & Chrome */
 color:#000;
 background:#FFF;
}
::-moz-selection { /* Firefox */
 color:#000;
 background:#FFF;
}

If you wish to submit a quick tip to this section please contact me..

No related posts.

Leave a comment  

name*

email*

website

Submit comment