Home arrow HTML arrow Page 3 - Handling Images in a 3D Table Image Gallery
HTML

Handling Images in a 3D Table Image Gallery


Welcome to the second part of a three-part article on building an image gallery in a 3D HTML table. With an image gallery, it is natural that viewers may want to maximize certain images for closer examination, and then restore them to their original size. This article will show you how to add this feature and others to your gallery.

Author Info:
By: Chrysanthus Forcha
Rating: 5 stars5 stars5 stars5 stars5 stars / 1
February 09, 2009
TABLE OF CONTENTS:
  1. · Handling Images in a 3D Table Image Gallery
  2. · Functions
  3. · Image Resolution
  4. · Automatically Changing Images in a 3D HTML Table Gallery
  5. · Operation from the Programmer’s Point of View

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Handling Images in a 3D Table Image Gallery - Image Resolution
(Page 3 of 5 )

You might have noticed in the past that when you increase the size (dimensions) of an image from the original size taken from the scanner, its resolution (fineness) is lost. However, when you reduce the size (dimensions) of an image, its resolution is not lost.

The solution is this: let the original size taken from your scanner (or digital camera) be the largest size that you can have on your web page. Let this be the size that will be downloaded onto you web page. What we call the small size of the main image above will simply be a result of the values we force for the image in the style sheet properties. The maximized size should not be greater than the actual size obtained from the scanner.

The Style Sheet

This is the style sheet for our example:


<style type="text/css">

body {z-index:0}

img {width:100px; height:100px}

</style>


The body element is given a z-index value of zero. A maximized image is given a z-index value of 2. The rest of the elements are assumed to have a z-index value of 1.



blog comments powered by Disqus
HTML ARTICLES

- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5
- BBC Adopts HTML 5, Mozilla Addresses Issues
- Advanced Sticky Footers in HTML and CSS
- HTML and CSS Sticky Footers
- Strategy Analytics Predicts HTML5 Phones to ...
- HTML5 Guidelines for Web Developers
- Learning HTML5 Game Programming
- More Engaging CSS3 and HTML Background Effec...
- Engaging HTML and CSS3 Background Effects
- More Web Columns with CSS3 and HTML
- Columns with CSS3 and HTML
- Creating Inline-Block HTML Elements with CSS
- Drag and Drop in HTML5: Parsing Local Files

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 7 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials