Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Styling sub-category and main product images

Styling sub-category and main product images

Locked

Views: 1,521

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
18 Sep 2006, 3:54 PM
#1
michaelvincent avatar

michaelvincent

New Zenner

Join Date:
Sep 2006
Posts:
8
Plugin Contributions:
0

Styling sub-category and main product images

I'm a little confused as to where and how I might go about stying the images on the sub-category page (ex: http://www.lheritagearts.com/gallery/index.php?main_page=index&cPath=67) and on the main product page (ex: http://www.lheritagearts.com/gallery/index.php?main_page=product_info&cPath=67_89&products_id=191) so that they have some padding and a border like the product listing page.

I was able to just add a style to the stylesheet for the listing because the image tag has a class attribute but it doesn't look like the images for the other pages do. Would it be possible to add a class attribute in the templates somewhere and then style it from the css file? I'm not too sure where to look or how to tackle this one!

18 Sep 2006, 7:34 PM
#2
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Styling sub-category and main product images

Try the following in the stylesheet.

.categoryListBoxContents img {
   border: black 1px solid;
   padding: 5px;
   }

#productMainImage img {
   border: black 1px solid;
   padding: 5px;
   }

Hope this helps.

.