edit selection color css code example Example: How to change selection color ::selection{ background-color: red; color: white; }