major cleanup -- widths all in percentages, and extracted common functionality for stylesheets and html