Code samples from chapter 4 of my responsive WordPress theme book.