1

Before publishing a site I have bloat of unused CSS styles. Is there any good tool to detect unused CSS classes, divs?

Related Questions:

Community
  • 1
  • 1
Lauri Lüüs
  • 189
  • 2
  • 8
  • Please check this [question](http://stackoverflow.com/questions/135657/tool-to-identify-unused-css-definitions). and related questions in the RHS. – Shoban Mar 23 '09 at 10:03

4 Answers4

0

Here is a simple web based css optimizer, very useful: http://www.cleancss.com/

Mantas Vidutis
  • 16,376
  • 20
  • 76
  • 92
0

Try ProCSSor

eozzy
  • 66,048
  • 104
  • 272
  • 428
0

Make sure you have firebug (for Firefox, if you don't know), and then install the pagespeed plugin for firebug, developed by Google:

http://code.google.com/speed/page-speed/

It will give you a 'pageSpeed' tab in firebug. Open it and, with 'performance' selected, click 'analyze performance'. Along with lots of other useful suggestions, you will get a list item labelled "Remove Unused Css". Click to expand it and see a breakdown by resource of unused css rules appearing on the present page, along with the memory size that you will save by removing the unused rules.

alegscogs
  • 6,245
  • 2
  • 17
  • 9
-2

You can try CSS Tidy:

http://csstidy.sourceforge.net/

It is simple yet effective.

dr Hannibal Lecter
  • 6,665
  • 4
  • 33
  • 42