How to identify unused CSS definitions from multiple CSS files in a project

jswanson picture jswanson · Sep 25, 2008 · Viewed 175.8k times · Source

A bunch of CSS files were pulled in and now I'm trying to clean things up a bit.

How can I efficiently identify unused CSS definitions in a whole project?

Answer

Derek Adair picture Derek Adair · Jun 24, 2010

Chrome Developer Tools has an Audits tab which can show unused CSS selectors.

Run an audit, then, under Web Page Performance see Remove unused CSS rules

enter image description here