loader image

How To Change Highlight Color With CSS

Posted by mat
                    
::selection {
  color: red;
}

                

Try to select me with your mouse and see what color comes up when you do.

Try to select me with your mouse and see what color comes up when you do.

Try to select me with your mouse and see what color comes up when you do.

Step 1

Add A CSS class to the area you want to selectively add the selection styling.

Want us to do this for you?