Skip to main content

Text Selection Color

Marc McCall avatar
Written by Marc McCall
Updated over 11 months ago

If you're having difficulties seeing on screen selected text you can add a selection styling to the site.

The ::selection CSS pseudo-element applies styles to the part of a document that has been highlighted by the user (such as clicking and dragging the mouse across text).

::selection {
color: gold;
background-color: red;
}

Example with the above CSS placed in the Appearance > Theme Options > CSS Block

Did this answer your question?