PDA

View Full Version : Image sizing


pwilman
06-Apr-2004, 09:54 AM
I am currently helping a friend build an ecommerce website.

I have looked in the Advanced guide and Actinic help but can't find an answer to my problem.

We are using product images that vary in size but when they appear on the site, the images and text are all over the place. So we want to put the images in a fixed size placeholder or "frame" (not to be confused with frame or frameset in the HTML sense. My question is, how do we set the parameters for the placeholder.

Any suggestions will be gratefully received.

Kind regards

Peter:confused:

s-j-r
06-Apr-2004, 01:18 PM
If you use a div with a style width and height specified your picture will scale to the size specified. If your pictures do not have the same relative width to height ratio then you can just specify width and the height scales proportionately.

Steve

cdicken
06-Apr-2004, 03:58 PM
Alternatively, edit Act_ProductImage.html and replace<IMG SRC="NETQUOTEVAR:IMAGEFILE"
ALT="NETQUOTEVAR:ALTERNATETEXT"
BORDER=0
NETQUOTEVAR:IMAGEHEIGHT
NETQUOTEVAR:IMAGEWIDTH
NETQUOTEVAR:OTHERIMAGEMARKUP> with <IMG SRC="NETQUOTEVAR:IMAGEFILE"
ALT="NETQUOTEVAR:ALTERNATETEXT"
BORDER=0
width="100"
NETQUOTEVAR:OTHERIMAGEMARKUP>
<!-- NETQUOTEVAR:IMAGEHEIGHT -->

pwilman
06-Apr-2004, 04:36 PM
Thanks Chris,

I'll give that a whirl and and let you know how it pans out.

regards

Peter