I can't imagine there's a way to test how something "looks" other than looking at it. I might be completely wrong there. Is it that tedious to view your pages in a browser?
The main reason programmers write tests is because there are many levels of "unknowns" or dynamic pages or dynamic results, so mind-numbingly changing data for each possibility can be quite tedious.
Your case seems to just involve aesthetics and how something looks.
However, you can use something like JSUnit for javascript testing.