Style Sheets
  Home arrow Style Sheets arrow Creating a Basic Image Gallery with CSS Sp...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
STYLE SHEETS

Creating a Basic Image Gallery with CSS Sprites
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 5
    2007-02-26

    Table of Contents:
  • Creating a Basic Image Gallery with CSS Sprites
  • Developing a basic image gallery with CSS sprites
  • Improving the original CSS sprite-based image gallery
  • Complete Source Code for Both Versions of the Gallery

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Creating a Basic Image Gallery with CSS Sprites


    (Page 1 of 4 )

    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.

    Introduction

    This series contains two preceding articles, which were aimed at demonstrating how the concept of CSS sprites can be applied in two specific cases that possibly will be quite familiar to you: creating rollover buttons and dynamic banners.

    Although these two concrete applications may seem rather primitive at first glance, they illustrated how CSS sprites can be utilized in a smart way. As you saw either in the case of the mentioned rollovers, or the banner, appropriate planning and design of the background images that comprise this pair of elements was indeed effective for eliminating the delay often noticeable when the browser has to download multiple pictures from the web server.

    So far, so good. Now that you know how to take advantage of the useful capabilities that CSS sprites offer, it's a good time to tackle the last part of this hopefully instructive journey. In accordance with this premise, in this final article of the series, I'm going to extend the use of CSS sprites even more by applying this schema to building a basic image gallery.

    I don't intend to replace a full-featured image system with one based upon CSS sprites, but I do want you to take a look at the small application that I'm going to build in the course of the next few lines. It will give you a better idea of how some basic CSS sprites can be quite handy for displaying thumbnails and large pictures as well.

    Let's no waste more time in preliminaries and start learning how to use CSS sprites to create a small-sized image gallery. Let's go!

    More Style Sheets Articles
    More By Alejandro Gervasio


       · In this final part of the series, the concept of CSS sprites is applied to create a...
     

    STYLE SHEETS ARTICLES

    - Image Replacement CSS Techniques
    - Using BlueTrip`s Success, Notice and Error C...
    - More Uses for the Thin and Caps CSS Classes ...
    - Styling Definition Lists with the BlueTrip C...
    - Styling Unordered and Ordered HTML Lists wit...
    - Using the BlueTrip CSS Framework`s Thin and ...
    - Adding Borders to Web Page Columns with Blue...
    - Introducing the BlueTrip CSS Framework
    - Using a Background Grid to Assist Web Page L...
    - Extending the Rule Of Thirds for Web Page La...
    - A Two-Column Web Page Layout Based on the Ru...
    - Using the Rule Of Thirds for Web Page Layout
    - Swapping Columns Using the Divine Ratio for ...
    - Using the Golden Ratio in Liquid Web Page De...
    - Fundamental Design Principles for Web Page L...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek