CSS Selection Styles?

Did you know you could customize the selection colours of html pages with CSS?  I didn't - until now.  Turns out, there's a CSS3 pseudo-element called ::selection.  Naturally, this isn't yet a technique supported by browsers like Internet Explorer, but it is supported in [albeit with different syntax] by Firefox and Safari.  Interesting, eh?  Check an article on CSS Selection Styles from Quirksmode, and have a look at some of the creative effects you can get with it here.

James Ford

James Ford

Front End web developer, author of the Flash Facebook Cookbook and Senior Developer at Deeson.

Read More