If you’re a web designer who’s looking for an approach to reduce the number of requests made by the browser, then you should examine the vast terrain of CSS sprites. Welcome to the final part of the series “Using CSS Sprites.” This three-part series shows you how to incorporate them into real world applications, and provides you with a respectable set of practical examples on the topic.
Creating a Basic Image Gallery with CSS Sprites - Complete Source Code for Both Versions of the Gallery (Page 4 of 4 )
As I promised before, here are the respective code listings that correspond to each version of the image gallery that was explained in previous sections.
The complete source file for this version can be downloaded here.
As usual, you can also download a ZIP file here containing all the supporting material and source files that belong to this CSS sprite-based image gallery.
Conclusion
Sad but true, this is the end of the series. However, in these three articles, I walked you through the basic points of creating and using CSS sprites to prevent delays when displaying background images, and to decrease the number of requests made by the browser. I hope you enjoy using this neat and unusual approach.
See you in the next web development tutorial!
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.