Kilian Valkhof

Building tools that make developers awesome.

Your best CSS selector?

CSS & HTML, 4 August 2008, < 1

I am making great progress on my new design, and one of the decisions I made was to just forget about IE and use all the css I want. This lead to perhaps the best CSS selector I have ever written:

li:not([class=pingback]) .comment-content p:first-child:first-letter

Which is one of the selectors I use to style the comment section of my new design. Not bad, is it?

Do you want a better understanding of your own CSS selectors? Then check out the CSS specificity calculator that explains your selectors.

So, for this week, Tell me your best CSS selector!

Polypane browser for responsive web development and design Hi, I'm Kilian. I make Polypane, the browser for responsive web development and design. If you're reading this site, that's probably interesting to you. Try it out!