tags:

views:

140

answers:

2

Hello, I'm wondering if anyone knows of a tool that will help me identify obsolete css (declared styles that never get used) in my site. thanks!

+3  A: 

See CSS cleaner here on SO.

strager
A: 

Since stylesheets can be added with script, and elements and classes can be created with scripts, it could be risky to remove css class and id declarations if they are not found in the html of those pages that literally link to those stylesheets.

That said, perl is a good tool for any kind of sitewide search and replace operation.

kennebec