Code: Remove CSS comments

From Chapter 7: CSS Optimization

Another strategy is to use PHP comments in your CSS. Once parsed, these comments will automatically disappear. First, you need to tell your server to parse your CSS files for PHP by adding the following lines to your httpd.conf or .htaccess file:

AddHandler application/x-httpd-php .css
php_value default_mimetype "text/css"

Next, include one- or multiline comments within your CSS file:

<?php
// this comment will disappear, a one-liner
?>

For multiline comments:

<?php
/* multiline comment here, allows longer
comments, that also don't appear in your CSS
*/
?>

Again, you trade some server processing power for size.