/ Published in: PHP
Paste the code in a file named style.php. Don’t forget to include your css files . Once done, open your HTML document and import style.php as you’ll import a css stylesheet.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function compress($buffer) { /* remove comments */ /* remove tabs, spaces, newlines, etc. */ ", "\r", "\n", "\t", ' ', ' ', ' '), '', $buffer); return $buffer; } /* your css files */ include('master.css'); include('typography.css'); include('grid.css'); include('print.css'); include('handheld.css');
URL: http://www.phpsnippets.info/compress-css-files-using-php