UX Design and Development course

CSS Selectors

In CSS, selectors are used to declare which part of the markup a style applies to, a kind of match expression.

The 30 CSS Selectors you Must Memorize

by Jeffrey Way9 Jun 2011

Twice a month, we revisit some of our readers’ favorite posts from throughout the history of Nettuts+. This tutorial was first published in November, 2010.

So you learned the base id, class, and descendant selectors - and then called it a day? If so, you're missing out on an enormous level of flexibility. While many of the selectors mentioned in this article are part of the CSS3 spec, and are, consequently, only available in modern browsers, you owe it to yourself to commit these to memory.

Keep reading ...

W3C Spec