css change highlight color code example
Example 1: hcss change highlight color
::selection {
background: #ffb7b7;
}
::-moz-selection {
background: #ffb7b7;
}
Example 2: custom selection color css
::selection {
color: #000000;
background-color: red;
}
::moz-selection {
color: #000000;
background-color: red;
}
Example 3: change highlight color html
::-moz-selection {
color: red;
background: yellow;
}
::selection {
color: red;
background: yellow;
}
Example 4: css selected color
::selection {
background-color: #222;
color: white;
}