Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Changing height of image on product listing

Changing height of image on product listing

Locked

Views: 1,421

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
25 Feb 2008, 4:51 PM
#1
dreamstudio avatar

dreamstudio

Zen Follower

Join Date:
Jun 2005
Posts:
106
Plugin Contributions:
0

Changing height of image on product listing

We are trying to change the height of the area the images take up on the product listing page without stretching the images themselves ( ie turning off proportional images ) and we dont want to resize the images as they have over 500 images on the site.

If you look at http://82.110.105.87/aswatersports.co.uk/index.php?main_page=index&cPath=14_18 and check out the products you will see the images are less in height than they should be and the text underneath is going into this white box which should be in the blue area

How can we set a height for the location the image is placed in so the images sit in the area and the text is in the correct area underneath. I know how do do in a html site with tables etc but not on zencart without without spoiling the image ( stretching & turn off proportional )

25 Feb 2008, 4:59 PM
#2
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Changing height of image on product listing

You can set the size of your images from your admin configuration images.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

25 Feb 2008, 5:20 PM
#3
dreamstudio avatar

dreamstudio

Zen Follower

Join Date:
Jun 2005
Posts:
106
Plugin Contributions:
0

Re: Changing height of image on product listing

I have set the size but some images are smaller in height when taking into account the width, so they proportionally take up less height and this causes the spacing problem.

What i want is to have a set size for the images ( which I have done ) and any that take up less height are centred in the white box and I code in a way to set the height the image area takes up so the text underneath doesnt go into the white box

25 Feb 2008, 5:51 PM
#5
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Re: Changing height of image on product listing

My question to you is. Why do you have different picture size?
If you want to look professional you must consider using one picture size. You will be able to have a the same look and picture size through out the site ( in thumbnail, and large pictures).

I would suggest that you edit the images and crop the picture to one size throughout the site. Then you can set the image height in the zen cart and it would look much better and professional

This is just what I had to go through building my site.

Good luck.

25 Feb 2008, 5:59 PM
#6
dreamstudio avatar

dreamstudio

Zen Follower

Join Date:
Jun 2005
Posts:
106
Plugin Contributions:
0

Re: Changing height of image on product listing

The reason we have different image sizes is we are upgrading there old site and they created all the images in different sizes. We have told them to recreate images for all new products and fit to a set size. However they didnt keep the originl photos so all we have are the files they created which are too small

So im just trying to solve the problem in code for now and then they can recreate images as they go along