Style Selected Text with CSS3

added by chrispoulter
1/16/2012 8:22:52 AM

0 Kicks, 70 Views

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... CSS3 Styled Text Selections Simply drag the cursor over the styled text and the background and color properties change. p::selection { background: red; color: white; } p::-moz-selection { background: red; color: white; } p::-webkit-selection { background: red; color: white; } This is now supported in the...


1/16/2012 12:34:06 PM
Hey Chris, Could you please leave your name off the title of stories we end up having to go in and edit them out as they are redundant.