Answers for "change colors when selected css"

CSS
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
1

css mark color

<style>
mark { 
  background-color: yellow;
  color: black;
}
</style>

<mark>Highlighted text!!</mark>
Posted by: Guest on March-23-2020

Code answers related to "change colors when selected css"

Browse Popular Code Answers by Language