david.writes('code');

Don't mind me… just here to take over the world…

March, 2013

Why you should use nth-child instead of class=”odd|even”

Take a gander at this: That’s my track listing on last.fm after I’ve deleted a few duplicates (thank you, last.fm Android app). Notice anything funny? Yeah. How about those background colors. See, last.fm slaps every other row with an “odd” class. They then target that class to alternate background colors for every other row. But […]