This does require you to put code in the HTML, but it's less code than a table.
Not sure what you mean, though. My solution didn't require a table.

I was just giving another alternative to using a table, not an alternative to your more elegant solution.