Customizing Text Selection in CSS


Use the ::selection pseudo-element to style the color and background of text selection.

Source Code

::selection {
    color: white;
    background: black;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments