CSSTidy: It’s HTMLTidy for CSS.
CSSTidy is an opensource CSS parser and optimiser. It is available as executeable file (available for Windows and Linux) which can be controlled per command line and as PHP script (both with almost the same functionality).
If the examples are accurate, it certainly cleans things up.
In a larger sense, however, I’m interested in articles about how people organize their CSS in large scale projects. I have a large application with hundreds of CSS rules. How do you group those in to logical units which may or may not correspond to separate files? Not every page uses every rule, so how to do I organize the CSS to make the pages as efficient as possible and easy to edit. I’d love to see some best practices here.
Architecting CSS: This is a pretty shallow, but solid, article on how to organize CSS. It covers how to organizes the three big components of CSS. Stylesheets (the CSS files and STYLE blocks) Rules and Selectors (within stylesheets) Attributes (within selectors) There's some good advice there, but I'm really looking for something a…
This article is a good intro:
http://www.digital-web.com/articles/architecting_css/
It doesn't really give you a pat answer but it does give you some good questions to ask about the project that will help get the CSS organized.