dropshado.ws

Front-end development minutiæ

by David DeSandro

Archive
RSS feed
Twitter
original Tumblr version

target pseudo-class

Baller CSS selector, used to the extreme by Lea Verou in her CSS3 overview presentation. :target is like :hover, in that it’s a pseudo-class. Styles are applied when URL hash matches the ID of the selector.

Test fiddle

02 Nov 2010
  • CSS,
  • Lea
  • Verou
Page of
  • desandro.com
  • @desandro
  • github.com/desandro
  • desandro’s JS Fiddles