Style Sheets
  Home arrow Style Sheets arrow Creating a Basic Image Gallery with CSS Sp...
IBM developerWorks
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  
Dedicated Servers  
Actuate Whitepapers 
Moblin 
IBM® developerWorks 
Sun Developer Network 
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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    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

    - Creating Gradients for Individual Containers...
    - Creating Gradients for Web Page Headers with...
    - SEO Scrolling Frames Problem Solved
    - Building Cross-Browser Background Effects wi...
    - CSS: Pseudo
    - Using PNG Images to Build Background Effects
    - CSS: Continuing the Clarification of CSS Cla...
    - CSS: Top Secret Classification
    - CSS: Dimensions
    - CSS: Margins and Padding
    - CSS: Crossing the Border
    - CSS: Text, Fonts, and Tables
    - CSS: Working with Text
    - CSS: Backgrounds
    - CSS for the Newbie







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway