views:

1036

answers:

3

Does anyone know of CSS refactoring tools? Ideally, I would load all of my CSS and have the tool intelligently remove redundant declarations, merge classes, etc, without completely munging it all.

+5  A: 

Either tool should do the job for you.

sjstrutt
A: 

Rapid PHP is my IDE and has a built-in tool for this.

Nathan Long
+3  A: 

see Dust-Me Selectors.

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

Dust-Me Selectors is a Firefox extension (for v1.5 or later) that finds unused CSS selectors.

It extracts all the selectors from all the stylesheets on the page you're viewing, then analyzes that page to see which of those selectors are not used. The data is then stored so that when testing subsequent pages, selectors can be crossed off the list as they're encountered.

j4y
Thanks for this, its a gem.
Pickledegg