Link to home
Start Free TrialLog in
Avatar of GlennGilbert
GlennGilbert

asked on

CSS code clean/tidy/reformatting utility

Does anyone know of a utility that will clean up CSS?

I have a large CSS file that I'd like to reformat to remove all comments,  place all styles on a single line,  etc.   The purpose is to speed up loading of the site - we'll make changes to the 'source' file and ship the output file.

I'd prefer a utility that I could download and run locally.  It could be a DreamWeaver extension.


Cheers,
Glenn
Avatar of GlennGilbert
GlennGilbert

ASKER

Found a couple of on-line code reformat/compression utilities.

One did't work (http://www.cssoptimiser.com/) - this took all the styles and *severely* optimised the code.  I guess it'll work for smaller stylesheets and will result in really compressed files.

The one that worked well was http://flumpcakes.co.uk/css/optimiser/.  Dodgy domain name,  but good utility.  It just about halved the size of the source code (which had lots of comments).


Any other recommendations for the points?


Glenn
ASKER CERTIFIED SOLUTION
Avatar of bochgoch
bochgoch
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial