Tagged with selectors
The bleeding edge of web: querySelector() and querySelectorAll()
One thing coming up in the W3C selectors api spec are a couple of new methods for retrieving DOM elements called querySelector() and querySelectorAll() that take a css selector and return a node or list of nodes that match. They basically do the same thing as the css query features of JQuery or Dean Edward’s [...]Published in Javascript on Saturday, July 12th, 2008
Child and sibling selectors
I was trying to style a bit of html without having to add a new class into the markup and came across two types of CSS selectors that I haven’t used before called child and sibling selectors. You can use child selectors to target the direct children of an element. The syntax is parent > [...]Published in CSS on Saturday, January 20th, 2007






