16 January 2012

Style Selected Text with CSS3

Loving some of the new things you can now do with CSS3. Recently discovered that you can add styling to text selected by the user. Begs the question where you could make use of this or in fact whether a user is ever likely to notice you have tweaked the styling for their benefit but hey...

Style Selected Text

Simply drag the cursor over the styled text and the background and color properties change.

This is now supported in the latest versions of all the major browsers: Internet Explorer, Opera, Firefox and Chrome.