tags:

views:

65

answers:

4

Hello, I have a project with 1 css file and a lot of templates (.tpl), so I know that in my css file there are a lot of classes which I don't use . How can I find these classes?

Is there an editor, plugin or other way, without searching each class in the whole project?

+2  A: 

What you're looking for is a kind of code coverage tool for CSS, like:

https://addons.mozilla.org/en-US/firefox/addon/10704

Electrogramme
I need to open All pages from Project ??? And this addon isn't compatible with firefox 3.5.1I'll try to downgrade my firefox ... thank you this is a good plugin!
Alexander Corotchi
A: 

Long Method

This method uses a feature that I know is available in Eclipse, the multi-language IDE. Take each class and search for eat in the project. If there is only one match (the css file, you can safely remove the class) else keep the class in the css file.

xav0989
+2  A: 

There is another add-on from sitepoint that finds unused selectors

http://www.sitepoint.com/dustmeselectors/

chchrist