Unlimited Wordpress themes, plugins, graphics & courses! Unlimited asset downloads! From $16.50/m
Lessons:20Length:1.2 hours
  • Overview
  • Transcript

2.2 Change Text Selection Color

In this lesson I’ll show you how to change the text selection color. It’s this one right here (example). When you select a piece of text in the browser you get this blue background around the text you selected.

But what if you want your own style for that? Well, up until CSS3 this wasn’t really doable. But now, you can use the ::selection pseudo-element to target that specific state.