Submit a CSS related link →

Posh CSS

For the modern day web designer.

Smarter CSS using an adjacent selector

# Linked to 1 October 2008, 03:00 in by Sam Brown

Wouldn’t it be great if you could add styles to your web page by specifying a style for a particular element on the basis of its proximity to another element? Well, in fact, you can do this using the adjacent-sibling selector!

Read more at www.cvwdesign.com →

Sam Brown

Sam Brown is a freelance interface designer and web standards developer based in Edinburgh, Scotland. Sam's work can be seen at Massive Blue, blogs at Sam Brown and is on Twitter at @sambrown.