Home arrow Style Sheets arrow Page 2 - Dynamic Galleries with DOM and CSS
STYLE SHEETS

Dynamic Galleries with DOM and CSS


Thumbnail galleries are one of the first things that made the Web surfing experience more interesting. These are whole pages of preview images, which, when clicked on, became the big ones allowed for fast scanning of the image material on offer and easy access to selected pictures. Chris Heilmann shows you how to create and maintain a thumbnail gallery.

Author Info:
By: Chris Heilmann
Rating: 4 stars4 stars4 stars4 stars4 stars / 22
January 31, 2005
TABLE OF CONTENTS:
  1. · Dynamic Galleries with DOM and CSS
  2. · Basic Functionality of a Thumbnail Gallery
  3. · Old School Dynamic Galleries
  4. · Sketching our Gallery
  5. · The Javascript
  6. · The Stylesheet
  7. · A Sequential Gallery
  8. · Other options

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Dynamic Galleries with DOM and CSS - Basic Functionality of a Thumbnail Gallery
(Page 2 of 8 )

Let’s take a step back and look at what a thumbnail gallery should do for us. First, it should give us thumbnails -- small images that load fast and get cached to give us an overview of all the images available.

It should be common sense, but thumbnails should be small both in physical size and file size. Thumbnail galleries are there to give users with a slow connection a preview of the images, not to force them to load the full images alongside. 

There are Javascript and CSS “no preload” galleries on the Web that violate exactly that idea. Resizing images via CSS, Javascript or deprecated HTML attributes is not a clever idea, no matter how you cut it. It simply means that a visitor needs to load the entire gallery if she wants to see only selected images.

The thumbnails should give a good impression of what the image is and provide proper alternative text for accessibility reasons; these texts act as a fallback should images not be available. We could also provide the visitor with information about the dimension and file size of the big picture. 

The thumbnails should link to big images which get opened in the same browser, and -- when it comes to generated or dynamic galleries -- provide a link back to the thumbnails. Really usable galleries also have links to the next and previous images and tell the visitor how many more are in this album. 


blog comments powered by Disqus
STYLE SHEETS ARTICLES

- CSS Combinators: Working with Child Combinat...
- CSS Combinators: Using General Siblings
- Intro to CSS Combinators
- CSS Semicircles and Web Page Headers
- Drawing Circular Shapes with CSS3 and Border...
- More CSS Pagination Link Templates
- CSS Pagination Links
- Animated CSS3 Image Gallery: Advanced Transi...
- CSS3 Animated Image Gallery: Transitions
- CSS3 Properties: Fixed Heights with box-sizi...
- CSS3 Properties: Altering Strokes and 3D Eff...
- CSS3 Properties: Text-Stroke
- CSS3 Transitions: Width and Height Properties
- Creating a Drop Down Menu in CSS3
- Intro to CSS Transitions

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 5 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials