Forum Moderators: not2easy

Message Too Old, No Replies

CSS Optimisation Tool

In search of CSS tool to rewrite styles and clean up CSS files

         

YorkshireSteve

10:32 am on Jul 20, 2005 (gmt 0)

10+ Year Member



Hi Everyone,

A while ago - before I started using CSS properly - I downloaded a trial version of a CSS editing suite which had a tool which re-wrote the CSS file and optimised it by combining styles.

Does anyone know of any such programs which will re-write my CSS and save me hours of cutting and pasting?

Thanks,

Steve

BeeDeeDubbleU

11:53 am on Jul 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Googling for CSS editing suite yields a few results. Nothing there that's suitable?

MatthewHSE

1:52 pm on Jul 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How big is your CSS file? My CSS is normally a mess right after I finish getting everything so it looks and acts right, but it only takes a few minutes to combine rules and optimize the code. If you anticipate spending hours on optimizing your code if you do it by hand, it sounds like you may be working with an unnecessarily-large CSS file.

If your CSS must be that complex, then I would think twice about optimizing it much anyway. Unless it's outright sloppy, which happens sometimes during development, your code is probably at least fairly easy to read. That means later updates and changes will be easy and predictable. If you optimize it too far and combine too many rules, it could become very difficult to know what you need to change and what it will affect.