Boone
Boone

Reputation: 1056

Cleaning up CSS files

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?

Upvotes: 8

Views: 1945

Answers (4)

Jack
Jack

Reputation: 133567

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
(source: netdna-cdn.com)

Upvotes: 3

Sarfraz
Sarfraz

Reputation: 382656

Have a look at excellent firefox addon:

Dust-Me Selectors

alt text
(source: mozilla.org)

Upvotes: 7

Kris van der Mast
Kris van der Mast

Reputation: 16613

I mostly use Dust-me selectors and CSS tidy.

Upvotes: 0

Christian
Christian

Reputation: 28125

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.

Upvotes: 0

Related Questions