ZoomCities IT Community Webmaster Forum

Full Version: css compressor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
have you guys try this site to compress your css?
http://iceyboard.no-ip.org/projects/css_compressor
here are the options:

Quote:
Compression options
Colours
Convert long colours names to hex
Convert long hex codes to short hex codes
Convert long hex to colour names
Convert RGB to hex

Measurements
Remove zero measurements

Rules
Combine identical rules
Combine identical selectors
Combine properties
Remove overwritten properties

Properties
Remove useless values from margins and padding
Convert text weights to numbers

Output options
Show statistics
Output in colour
Output using smallest size


know how it works?

Looks good, I've tried to "compress" a css file from my Joomla template and it worked alright, saved about 30%.
One thing though: do not use it if you want to edit your css in the future, as it'll be hard to find anything in it after "compression".
I don't understand this what to compress?

Nikolasr Wrote:
I don't understand this what to compress?


If you build your site using .css (Cascade Style Sheet) file, it's sometimes pretty big, and since it loads every time the page is loaded into the browser, it takes some time to open the page. You can save server space and load time by "compressing" .css file, which in fact is just the process that removes all unneeded spaces, tabs etc.

Well i like to do it through w3c site. I just validate by css codes and it automatically aligns for me.
And also there is this project called the css tidy its the same at http://csstidy.sourceforge.net
I use compression on all my blogs. Even the one I have now (http://gerardm.info). It saves even little seconds of loading time, which is good enough.

d.v Wrote:
One thing though: do not use it if you want to edit your css in the future, as it'll be hard to find anything in it after "compression".


Thats why I always have backups lol..After compression, all the spaces, end ;'s, and line breaks all disappear, which makes it nearly impossible to edit Blink

I refrain from using CSS compression, though it seems to help sites load faster, as it would be very hard or nearly impossible to edit. If you are really keen on doing so, I suggest you always keep a copy of the uncompressed one.
Backups, my friend, are the solution.
now after you compress it try editing it hahaa, it's impossible.

Also, don't compress php, otherwise you get loads of errors.

lewis Wrote:
now after you compress it try editing it hahaa, it's impossible.

Also, don't compress php, otherwise you get loads of errors.


Yeah, I don't think compressing your CSS is a good idea either.

If it's getting to be that much, something is probably wrong.

Compressing the css makes it a pain to work with.

I've just been using php and
ob_start("ob_gzhandler")

lewis Wrote:
now after you compress it try editing it hahaa, it's impossible.

Also, don't compress php, otherwise you get loads of errors.


You're not supposed to compress PHP. Rolleyes

I think he means "encode php"

reedone816 Wrote:
have you guys try this site to compress your css?
http://iceyboard.no-ip.org/projects/css_compressor
here are the options:

Quote:
Compression options
Colours
Convert long colours names to hex
Convert long hex codes to short hex codes
Convert long hex to colour names
Convert RGB to hex

Measurements
Remove zero measurements

Rules
Combine identical rules
Combine identical selectors
Combine properties
Remove overwritten properties

Properties
Remove useless values from margins and padding
Convert text weights to numbers

Output options
Show statistics
Output in colour
Output using smallest size


know how it works?


Sorry buddy, i never tried it so can't suggest you anything about it

Reference URL's