2

I would like to know how to remove all comments in CSS file and make all rules into one line.

I do have access to Dreamweaver CS4.

Thank you

q0987
  • 34,938
  • 69
  • 242
  • 387
  • possible duplicate of [what is a good cross-platform css compressor?](http://stackoverflow.com/questions/183434/what-is-a-good-cross-platform-css-compressor) – kennytm Aug 30 '10 at 18:20

5 Answers5

3

http://developer.yahoo.com/yui/compressor/

Angelo R.
  • 2,285
  • 1
  • 17
  • 22
2

Here's another one: CSS Compressor

slhck
  • 36,575
  • 28
  • 148
  • 201
2

if you can run PHP, you can do it one of these ways. benefit of keeping the code readable for yourself and only on rendering it is minified.

http://www.catswhocode.com/blog/3-ways-to-compress-css-files-using-php

you also have the YUI compressor: http://refresh-sf.com/yui/

also look up the minify project. It combines multiple CSS and JS files and minifies them as well.

Moin Zaman
  • 25,281
  • 6
  • 70
  • 74
1

YUI compressor does CSS as well as JS.

Alex Wayne
  • 178,991
  • 47
  • 309
  • 337
1

Google gave me this: CSSCompressor.

See also “CSS Minimzer ?” on StackOverflow.

Community
  • 1
  • 1
poke
  • 369,085
  • 72
  • 557
  • 602