css compressing

November 25, 2011 CSS no responses #

CSS Compression

Method One

This method involves adding a small PHP script to your CSS document and replacing its 

.css

 extension with a 

.php

 extension.

Place the following PHP script into the top of the CSS document that you wish to compress. Then change the 

.css

 extension to 

.php

, to arrive at something similar to: 

compressed-css.php

. Remember to use the new name when referencing the file.

Continue reading

Pin It on Pinterest