Archive for December, 2008

Extending CSS Spriting

Friday, December 5th, 2008

CSS Spriting is a technique for speeding up the load times for your website by reducing the number of HTTP requests for images to the server. On Yahoo's best practices website, they say:

"CSS Sprites are the preferred method for reducing the number of image requests. Combine your background images into a single image and use the CSS background-image and background-position properties to display the desired image segment."

This technique can be extended for non-background images on your site as well. However, some issues arise when you use CSS spriting for your main navigation elements(among other images):

  1. You can't attach alternate text to divs for accessibility purposes
  2. CSS Spriting and the IE6 PNG fix a ...
[ Read More ]