change hilghliting color html code example
Example 1: change highlight color html
::-moz-selection {
color: red;
background: yellow;
}
::selection {
color: red;
background: yellow;
}
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;
}