views:

49

answers:

4

I have a bunch of CSS files with a bunch of classes. I know a lot are not used.

Is there a tool that will scan your site and clean up your CSS files or tell me which ones aren't used?

+2  A: 

Have a look at excellent firefox addon:

Dust-Me Selectors

alt text

Sarfraz
A: 

That's a lot of different tools you're asking.

Firebug has a plugin called "CSS usage": it tells you what CSS files are used.

Then there's the CSS minifier (compresses your CSS code).

And finally, there's the CSS beautifier.

Christian Sciberras
+2  A: 

This site has some nice tricks about what you need to do http://www.makeuseof.com/tag/useful-tools-to-check-clean-and-optimize-your-css-file/.

It suggests some tools like a Firefox plugin called Dust-Me selectors.. http://www.sitepoint.com/dustmeselectors/

alt text

Jack
A: 

I mostly use Dust-me selectors and CSS tidy.

XIII