Answers for "how to change selection color in html"

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
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
2

how to change color in html

<font color="red">This is some text!</font>
Posted by: Guest on February-09-2020
0

css selector color

::selection {
  color: #ffffff;
  background-color: red;
}
Posted by: Guest on February-02-2021

Code answers related to "how to change selection color in html"

Browse Popular Code Answers by Language