Browsing Tag

css selectors

The 30 CSS Selectors you Must Memorize

The 30 CSS Selectors you Must Memorize

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.


This entry is part 2 of 16 in the CSS3 Mastery Session
Building a Simple CSS Selector Engine: New Premium Tutorial
plusvideos

Building a Simple CSS Selector Engine: New Premium Tutorial

Recently, I thought I’d try my hand at creating a simple CSS selector engine. You know what I’m talking about: it’s the kind of thing you use in most JavaScript libraries, where you pass in a CSS selector to find the elements you want to work with. Today, I’ll show you how to create a really simple one!

Become a Premium member to read this tutorial, as well as hundreds of other advanced tutorials and screencasts.