Last updated on

Using your cursor select this sentence. Notice how as you select the text a background color fills the space? You can change the background color and color of selected text by styling::selection. Styling this pseudo element is great for matching user-selected text to your site’s color scheme. p::-moz-selection { color: red} p::selection { color: red;

Continue reading →