News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Stoyan Stefanov's Blog:
CSS Sprites generation tool
June 27, 2007 @ 10:29:00

In his latest post, Stoyan Stefanov introduces a new project he's working on, the implementation of CSS sprites:

This is a simple technique used for page load performance purposes. Since HTTP requests are the most expensive thing you can do in regards to front-end performance, you strive for making as little requests as possible. So instead of having the browser download 4 rounded corner images for example, you create one image that has all four. Then you use CSS' background-position to only show the part of the image you want.

He explains briefly how the system works and includes a simple example in PHP (showing how to use the imagemagik utility to create the custom image).

2 comments voice your opinion now!
css sprite generate png image implement css sprite generate png image implement


blog comments powered by Disqus

Similar Posts

David Coaller's Blog: Namespaces part 1.2: Namespaces

DevShed: Developing a Captcha Application with an Image Generator Class with PHP 5

The Bakery: Some ideas to organize your CSS files and autoload them in CakePHP

ASys DataService\'s Blog: Rounded corners using PHP and the GD library

Codewalkers.com: Creating a CAPTCHA with PHP


Community Events

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


series performance language release community opinion api podcast conference introduction symfony2 interview example part2 application php7 configure framework laravel voicesoftheelephpant

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