Answers for "change text highlight color"

CSS
9

custom selection color css

::selection {
	color: #000000;
	background-color: red;
}

/* for firefox */
::moz-selection {
	color: #000000;
	background-color: red;
}
Posted by: Guest on March-28-2020
3

hcss change highlight color

::selection {
  background: #ffb7b7; /* WebKit/Blink Browsers */
}
::-moz-selection {
  background: #ffb7b7; /* Gecko Browsers */
}
Posted by: Guest on January-08-2021

Code answers related to "change text highlight color"

Browse Popular Code Answers by Language