Change Default Text “::Selection” Color

::selection is one of a property which changes the default color of the selected text and promotes Branding very impressively. As CSS improving, it ads more features day-by-day, some of the features we know and some may not.

Pseudo CSS Selector – ::selection

The ::selection is a CSS pseudo-element which changes the color of the text while user selects text by clicking & dragging mouse or by keyboard on the webpage.

The Default Color/ System Color of the selected text on the webpage is Navy Blue. This small & simple snippet of CSS pseudo-element is very useful as it gives freedom to change the default color of the selected text and it also helps in improving Site Branding by giving Brand Color to the Selected Text.