When you select text in browser, most often background behind text being selected changes color to blue. How to change this color to another?
When you select text in browser, most often background behind text being selected changes
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are looking for the
selectionpseudo-element.Also, as a side note. If you plan on using text-shadow in your site at all, I would recommend adding
text-shadow:none;to your::selectionstyling. As you can see in this fiddle, it is really hard on the eyes.