Code samples from Chapter 5 of my responsive WordPress theming book.