Forums / Templates, Stylesheets, Page Layout / Need different style for category images and product images

Need different style for category images and product images

Locked

Started by molls2714 on 11 Jul 2008, 3:14 PM · Views: 1,669

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
11 Jul 2008, 3:14 PM
#1
molls2714 avatar

molls2714

New Zenner

Join Date:
Jul 2008
Posts:
10
Plugin Contributions:
0

Need different style for category images and product images

I am running into a lot of errors with the pictures when you use older versions of IE, so I want to create a specific style on the stylesheet for the category images, and then a different one for the product images. Is there a way to do this?

Or - if you can just tell me how to make all the images show up the right size. I've tried taking off the height and width styles, setting them to 100%, setting them to auto, nothing works with older IE. They show up short and wide until you roll over them with the mouse, and then they're fine

11 Jul 2008, 3:34 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need different style for category images and product images

You can style

.listingProductImage {}
for product images on listing pages, and
.categoryListBoxContents img {}
for (sub)category images on category/subcategory pages.
Other classes may be needed for other locations.

The important thing, I think, is that the behavior you describe does not generally happen, so there is something unusual about your computer or your ZC installation. Can you post a link so we can see if it is a problem for others?

11 Jul 2008, 3:49 PM
#3
molls2714 avatar

molls2714

New Zenner

Join Date:
Jul 2008
Posts:
10
Plugin Contributions:
0

Re: Need different style for category images and product images

The link is https://www.prostitchdesign.com/zencart

The site works fine in Firefox, Opera, and IE 7, but has problems in older versions of IE, and we have no idea why. Any input would be appreciated

11 Jul 2008, 5:24 PM
#4
molls2714 avatar

molls2714

New Zenner

Join Date:
Jul 2008
Posts:
10
Plugin Contributions:
0

Re: Need different style for category images and product images

Also if you go to

http://prostitchdesign.com/zencart/distorted.html

You can see the screenshots the client sent us of the distorted images. We got the homepage fixed but have been unable to fix the rest of the problems

11 Jul 2008, 7:44 PM
#5
molls2714 avatar

molls2714

New Zenner

Join Date:
Jul 2008
Posts:
10
Plugin Contributions:
0

Re: Need different style for category images and product images

What about making different style specifications for thumbnail product images and large product images? Is there a way to do that?

12 Jul 2008, 3:07 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need different style for category images and product images

Not as such. You can make different style specs for each type of place where images are used, and there will not be both thumbnails and large images used in any one place.