Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Borders around images

Borders around images

Views: 1,399

Results 1 to 17 of 17
27 Feb 2011, 6:38 AM
#1
cabernetcat avatar

cabernetcat

Zen Follower

Join Date:
Dec 2004
Location:
Victoria, Australia
Posts:
145
Plugin Contributions:
0

Borders around images

I don't doubt that this has been answered more than a few times... but I've dredged this forum looking for a straight answer... and I can't find it. In fact, I had the answer to this 12 months ago, and now I cannot remember how I did it (the site where it was done is not longer operational) http://www.zen-cart.com/forum/showthread.php?t=148206

Can someone please tell me where I change the border colour and width for the main image and the additional images?

Cheers!

27 Feb 2011, 6:49 AM
#2
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Borders around images

do you have link to current site?

27 Feb 2011, 7:09 AM
#3
cabernetcat avatar

cabernetcat

Zen Follower

Join Date:
Dec 2004
Location:
Victoria, Australia
Posts:
145
Plugin Contributions:
0

Re: Borders around images

Nope, sorry. It's in dev on a local PC.

27 Feb 2011, 7:13 AM
#4
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Borders around images

try this for the additional images:

.additionalImages Img {
border:1px solid #FF0000;
}

see if that works

27 Feb 2011, 7:19 AM
#5
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Borders around images

try this for the main image:

#productMainImage {
border:1px solid #FF0000;
}

see if that works, I am assumming you are talking about the images on the product_info page

hope this helps!

27 Feb 2011, 8:28 AM
#6
cabernetcat avatar

cabernetcat

Zen Follower

Join Date:
Dec 2004
Location:
Victoria, Australia
Posts:
145
Plugin Contributions:
0

Re: Borders around images

product_info=yes
ummm... in which file?

27 Feb 2011, 8:47 AM
#7
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Borders around images

they would have to be added to your stylesheet.css

includes/templates/CUSTOM_TEMPLATE/css/stylesheet.css

27 Feb 2011, 8:52 AM
#8
cabernetcat avatar

cabernetcat

Zen Follower

Join Date:
Dec 2004
Location:
Victoria, Australia
Posts:
145
Plugin Contributions:
0

Re: Borders around images

Thanks, I'll check it out!

5 Mar 2011, 3:54 AM
#9
cabernetcat avatar

cabernetcat

Zen Follower

Join Date:
Dec 2004
Location:
Victoria, Australia
Posts:
145
Plugin Contributions:
0

Re: Borders around images

Hope someone can help me out here.... cause I can't work this out.

http://esotericbynature.com/ebn_test/index.php?main_page=product_info&cPath=11_1&products_id=4

  1. The thin purple border around the entire group of additional images... where does this come from?
  2. Is there a way to have to border around the main image, only be around the image, not the image and the 'larger image' text (new borders displayed in red for viability)
5 Mar 2011, 4:09 AM
#10
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,178
Plugin Contributions:
0

Re: Borders around images

CabernetCat:

Hope someone can help me out here.... cause I can't work this out.

http://esotericbynature.com/ebn_test/index.php?main_page=product_info&cPath=11_1&products_id=4

  1. The thin purple border around the entire group of additional images... where does this come from?

Ca,
Locate this:

ebn_test/includes/templates/theme325/css/stylesheet_main.cssFind this:
#productAdditionalImages {
border:1px solid #76548E;
margin:10px;
padding:10px 0;
}The highlighted red font above is your fix.. Comment it out or just delete it..

5 Mar 2011, 4:11 AM
#11
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Borders around images

for the thin purple border, in your stylesheet_main.css file

find:

#productAdditionalImages {margin:10px; border:1px solid #76548e; padding:10px 0px;}

change to:

#productAdditionalImages {margin:10px; border:0px solid #76548e; padding:10px 0px;}
5 Mar 2011, 6:12 AM
#12
cabernetcat avatar

cabernetcat

Zen Follower

Join Date:
Dec 2004
Location:
Victoria, Australia
Posts:
145
Plugin Contributions:
0

Re: Borders around images

Thanks guys,

Got item 1 sorted. any ideas on the border around the main image?

5 Mar 2011, 6:19 AM
#13
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Borders around images

CabernetCat:

Thanks guys,

Got item 1 sorted. any ideas on the border around the main image?

ideas, what are you trying to do?

5 Mar 2011, 6:33 AM
#14
cabernetcat avatar

cabernetcat

Zen Follower

Join Date:
Dec 2004
Location:
Victoria, Australia
Posts:
145
Plugin Contributions:
0

Re: Borders around images

CabernetCat:

Hope someone can help me out here.... cause I can't work this out.

http://esotericbynature.com/ebn_test/index.php?main_page=product_info&cPath=11_1&products_id=4

  1. The thin purple border around the entire group of additional images... where does this come from?
  2. Is there a way to have to border around the main image, only be around the image, not the image and the 'larger image' text (new borders displayed in red for viability)

I'm trying to achieve item 2. - confining the border to just the image.

5 Mar 2011, 6:42 AM
#15
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,178
Plugin Contributions:
0

Re: Borders around images

Ca,
You will add this to your stylesheet.css

#productMainImage img {border:5px outset #FF0000}and get rid of this:
#productMainImage {
border:5px solid #FF0000;
}Change to this:
#productMainImage {
border:0px solid #FF0000;
}

6 Mar 2011, 8:57 AM
#16
cabernetcat avatar

cabernetcat

Zen Follower

Join Date:
Dec 2004
Location:
Victoria, Australia
Posts:
145
Plugin Contributions:
0

Re: Borders around images

Thank's Mark. Worked a treat!

6 Mar 2011, 2:41 PM
#17
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,178
Plugin Contributions:
0

Re: Borders around images

Your Welcome, glad I could help you solve your issue ..