Tech, music and video game enthusiast
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..
| Print article |
Comments are closed.