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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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