david.writes('code');

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

CSS

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 […]

JSON-style Cascading Style Sheets

So, it’s kind of the way of the world that when I have a good idea and start focusing my energies on fully hashing out and refining that idea, I find that somebody else has shared that idea and is already (sometimes only somewhat) implementing it. ย Today’s example is what I might call JSON-style CSS. […]