Answers for "highlight text with color in html"

CSS
3

html how to change highlight color

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

change highlight color html

::-moz-selection { /* Code for Firefox */
  color: red;
  background: yellow;
}

::selection {
  color: red;
  background: yellow;
}
Posted by: Guest on August-04-2020

Code answers related to "highlight text with color in html"

Browse Popular Code Answers by Language