This content has been marked as final. Show 4 replies
In your HTML, do you have height and width set on your central image? If so, then whatever you put in that spot will be resized to those dimensions. The better choice would be to crop your images so that the large version of each is the same size. (Or add padding to them so they at least look that way.
the issue iv got is not the large images being reduced (am quite happy to crop them to fit) but the much smaller images being stretched from a horizontal rectangle to a much large vertical rectangle, their a different shape from the central image to begin with, would i be able to insert padding to change the dimensions of the stretched image?
You can do this many ways ways -
1. Don't use swap image - use Show/Hide layer instead. Have the alternate
image in a hidden layer that is shown when the trigger is 'tickled'. Using
this method you can have images that are any dimension.
2. Use swap image, but remove the dimensions from the original image's tag,
i.e., change this -
<img name="original" width="150" height="220" ...
to this -
<img name="original" ...
Now when you swap in your offsize image, there is no predefined size to
change it to. Be aware that this method may well result in an unpleasant
and undesirable 'rearrangement' of your page layout as it adjusts to your
new image's dimensions.
3. Pad the smaller image with canvas background color on all sides so that
all the images *are the same size*.
4. Use a SetTextofLayer behavior to change the image reference in a layer
positioned so that it will show the desired larger image in the proper
5. Use the PVII ShowPic extension - http://www.projectseven.com/
Take your pick....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
"Dark7722" <firstname.lastname@example.org> wrote in message
> the issue iv got is not the large images being reduced (am quite happy to
> them to fit) but the much smaller images being stretched from a horizontal
> rectangle to a much large vertical rectangle, their a different shape from
> central image to begin with
cheers guys, all sorted