how to change text highlighting on website html code example
Example 1: change highlight color html
::-moz-selection { /* Code for Firefox */
color: red;
background: yellow;
}
::selection {
color: red;
background: yellow;
}
Example 2: how to change highlight color on website
/* Change Selection Text Color When Highlighting */
::-moz-selection { background-color: #476f30;
color: #fff; }
::selection { background-color: #476f30;
color: #fff; }