Skip directly to content

techniques

In Between the Lines: The adjacent sibling selector technique

on August 19th, 2010 at 3:18:54 PM

The simple list is a staple of information presentation on the web. Commonly, items in a list are visually distinguished with separating lines - either horizontal borders or vertical borders. This post describes a simple technique for defining styles in the spaces between list items without reference to the first or last item in the list.