3
Shouts

Style Selected Text with CSS3 :: Chris Poulter

published 492 days, 20 hours, 10 minutes ago posted by chrispoulterchrispoulter 494 days, 22 hours, 45 minutes ago
Wednesday, January 18, 2012 4:59:12 PM GMT Monday, January 16, 2012 2:24:24 PM GMT

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...

category: UX | clicked: 12 | | source: www.chrispoulter.com | show counter code
tags: CSS 3, CSS, HTML

No comments yet, be the first one to post comment.

To post your comment please login or signup