Smarter CSS using an adjacent selector
# Linked to 1 October 2008, 11:00 in Code 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!
No thoughts were recorded on this post.