q0987
q0987

Reputation: 35992

CSS - How to remove comments and make CSS one line

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

Upvotes: 2

Views: 7704

Answers (5)

Moin Zaman
Moin Zaman

Reputation: 25455

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.

Upvotes: 2

slhck
slhck

Reputation: 38740

Here's another one: CSS Compressor

Upvotes: 2

poke
poke

Reputation: 388153

Google gave me this: CSSCompressor.

See also “CSS Minimzer ?” on StackOverflow.

Upvotes: 1

Alex Wayne
Alex Wayne

Reputation: 187222

YUI compressor does CSS as well as JS.

Upvotes: 1

Related Questions