| 11:30 am on Sep 24, 2010 (gmt 0)|
AFAIK using css sprites is a well established practice, we've been using them for years.
there is no reason not to use them, the benefits are many.
although you must make sure that the sprites are cached by the browser, which would apply to all image files anyway
| 12:34 pm on Sep 24, 2010 (gmt 0)|
Thanks for the reply. Can you please give me some websites who have used CSS Sprites.
| 12:56 pm on Sep 24, 2010 (gmt 0)|
www.google.com is a good example:
| 5:35 pm on Sep 24, 2010 (gmt 0)|
Take your pick. :) They've all used CSS sprites.
| 9:44 am on Sep 27, 2010 (gmt 0)|
| 5:18 pm on Sep 27, 2010 (gmt 0)|
You're welcome amme10s
| 9:18 am on Sep 28, 2010 (gmt 0)|
There is one reason not to use them - they don't work with IE6 transparent PNG scripts - or at least I'm yet to find a trans PNG script that does work with sprites.
Either you go for an opaque background, or with the transparency fix applied the entire image is loaded (rather than just the segment of it containing the relevant icon).
If you are using, say, white background sprites on a page with a white background, this is no longer an issue, however.
| 1:43 pm on Sep 28, 2010 (gmt 0)|
Good point milosevic. If you don't need transparent PNG background images, then this won't be an issue for you. Alternatively, you could serve up different images for IE6. Fortunately, the days of needing to support IE6 are finally nearing an end. :)