Forum Moderators: not2easy

Message Too Old, No Replies

Constraining thumbnails

need help limiting thumbnail width without distorting images

         

BigVarsity185

12:04 am on Aug 2, 2004 (gmt 0)

10+ Year Member



I am in need of some assistance and would greatly appreciate any help.

I am displaying three thumbnail images per column on a product page. The thumnails are not all the same width (all are less than 100px), but are dynamically rendered from the same piece of CF code (so I only have one place to set the width of the image).

If I define the width of the image at the desired 100 px, then the images that are less than 100 px will get stretched out. If I don't, then the page will appear stretched out beyond its boundaries until the entire page has loaded. Once the whole page has loaded, it will adhere to the boundaries set by its table, but it looks terrible in the mean time.

It would be impractical to re-create all of the images in a standard width.

Is there any way to set the width of an image to be less than or equal to 100?

stef25

10:12 am on Aug 2, 2004 (gmt 0)

10+ Year Member



so some images are reduced in size to 100px, and other images are smaller than 100px to start with

try using percentages instead of px?

BigVarsity185

7:52 pm on Aug 3, 2004 (gmt 0)

10+ Year Member



No dice.

Same result. Any other ideas?