css change color of select options code example
Example 1: custom selection color css
::selection {
color: #000000;
background-color: red;
}
/* for firefox */
::moz-selection {
color: #000000;
background-color: red;
}
Example 2: How to change selection color
::selection{
background-color: red;
color: white;
}