Working as a web and database developer I often come across useful snippets of information about the technologies, tools and standards I use professionally. In order that I don't forget them and that someone out there may find them useful I keep a blog detailing the problems and solutions I discover.
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.