/ Published in: PHP

Minify and combine CSS files. Instructions in code.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* USING THIS FILE 1. Add the CSS files you want included to the $file array. */ $file[] = 'reset.css'; $file[] = 'typography.css'; $file[] = 'design.css'; /* 2. Save this file. 3. Point your HTML files to this script, eg. <link rel="stylesheet" href="/this-file.php" /> 4. Save the HTML file and refresh browser. */ function minifyCSS($f) { } foreach ($file as $name) { { echo minifyCSS($name); } }
Comments
