News Feed
Jobs Feed
Sections




News Archive
PHPMaster.com:
Automatic CSS3 Prefixer and Compressor
March 20, 2012 @ 12:38:30

On PHPMaster.com today there's a new tutorial showing how to use a little PHP magic to compress your CSS automatically.

There are many ways to compress CSS files or automatically generate browser-specific CSS3 prefixes, but usually extra tools are used which is very annoying. I'd like to show you how such tasks can be done using only PHP.

Complete code for this small script is included in the article. It uses some regular expressions to parse the CSS and does some replacement and removal of things from the CSS content to slim it down and format it all as one line. There are some images illustrating the process also included.

0 comments voice your opinion now!
css compress tutorial prefixer automatic


blog comments powered by Disqus

Similar Posts

Hiveminds Magazine: Using numbers in PHP function names

PHPBuilder.com: PHPUnit Fundamentals: Setting Up and Tearing Down a Doctrine 2 Database

PHPit.net: PHP on the command line

php|architect Blog: WordPress 404 Plugin built on Bing Wrapper

phpaddiction: Url Routing with PHP - Part Two


Community Events











Don't see your event here?
Let us know!


series podcast language composer api unittest code release phpunit example development testing community introduction database functional framework opinion zendframework2 interview

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework