How to change highlight color when selecting a text?

Tiny

Owner, Swift Industry
Aug 14, 2013
616
61
For example go to this website:
When you select any text, it shows red color. Tell me the html code please?
 

Weasel

👄 I'd intercept me
Nov 25, 2011
4,132
2,456
Code:
::selection {   background: red; /* WebKit/Blink Browsers */ }
::-moz-selection {   background: red; /* Gecko Browsers */ }

Learn to google.
 

Users who are viewing this thread

Top