Home arrow Style Sheets arrow 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: 5 stars5 stars5 stars5 stars5 stars / 26
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

Dynamic Galleries with DOM and CSS
(Page 1 of 8 )


Old School Thumbnail Galleries

The first and still best way to create and maintain a thumbnail gallery is to create it on the backend. We grab the image material from a database, generate the thumbnails on the fly and allow the visitor to navigate from thumbnail pages to the big picture ones and back with a set of linked templates. This will guide the visitors through the whole image collection, and they can bookmark certain pictures. These galleries are fully accessible - if we go through the sometimes cumbersome process of adding good alternative text. 

These galleries do not necessarily need a database and scripting enabled on the server. Many tools generate static galleries that simply have to be transferred over to the server. 

However, thumbnail galleries mean a lot of traffic and -- depending on your page templates and their page weight -- visitors might be annoyed by the reloads when navigating through the gallery. When your server is unable to serve dynamic pages, you also have to transfer a lot of files for each update: the thumbnails, the images, the thumbnail HTML documents and one HTML document for each image. 


blog comments powered by Disqus
STYLE SHEETS ARTICLES

- CSS Padding Overview
- CSS: Margins Overview
- Top CSS3 Button Tutorials
- More Top CSS3 Tutorials for Animation and Im...
- CSS Mega Menus: Adding Extra Sections
- CSS Mega Menus
- CSS3 Accordian Menu: Horizontally Display Hy...
- 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...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




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