html css click selection color code example
Example 1: custom selection color css
::selection {
color: #000000;
background-color: red;
}
::moz-selection {
color: #000000;
background-color: red;
}
Example 2: change mouse highlight color js
::selection {
background-color: #352e7e;
color: #fff;
}
::-moz-selection {
background-color: #352e7e;
color: #fff;
}
::-o-selection {
background-color: #352e7e;
color: #fff;
}
::-ms-selection {
background-color: #352e7e;
color: #fff;
}
::-webkit-selection {
background-color: #352e7e;
color: #fff;
}