views:

1911

answers:

2

My project has collected CSS entropy (unused classes) during its course of development.

Now in order to keep the CSS file small, I want to remove all unused CSS references. But doing that manually involves searching for each class in the entire project. That takes time.

Do you know of any way/tool which I can adopt to find out which CSS classes are no longer used in my project, and remove it?

I am programming on ASP.NET. Visual Studio.

+1  A: 

I wrote a tool which allows you to find all class and CssClass attributes in your aspx source code.

See my blog entry for info and download.

devio
Thanks... going to check it out now.
Cyril Gupta
+3  A: 

You might find this Firefox extension useful: http://www.sitepoint.com/dustmeselectors/

Ian Oxley