code cleanup, configurable

wrap the whole thing in a function, pass values like column number, widths and classes for the css as arguments. echo it out in pre tags or just return the css-code.