I've been tasked with reproducing the look and feel of an intranet site in SharePoint, at first I was thinking no problem just mod a Master page and voila.
The problem occurred when I opened the source of the site and saw that they are using 12 disparate CSS files that override each other, and are written in the worst way possible.
My question is is there a tool that can take the mess and generate the resulting HTML so I don't have to manually.
- Base.css for example sets BODY width to 90%
- custom.css then sets it to 960px !important
- Mod.css lastly tries to set it to 100%
I would need it to look at this and generate BODY with the style to set the width to 960px

<div>or something; there's no way you can tell which tag to generate from a CSS selector that isn't a tag. There is a program called CSSTidy that will clean up your CSS for you by removing duplicate/overridden selectors and whatnot