It's a bit of a pain to style tables, especially when it's for some quick script that you wrote for your own needs. But here is a generator tool that removes the pain, and produces cool results: HTML Table Style Generator | eli geske