Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

Where is "box_bg.jpg"?

Locked

Started by yonside on 22 Jan 2008, 10:09 PM · Views: 753

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
22 Jan 2008, 10:09 PM
#1
yonside avatar

yonside

New Zenner

Join Date:
Jan 2008
Posts:
6
Plugin Contributions:
0

Post #1 by yonside

Hi,

I am using Zen Cart Classic 1.3.7.1 and changing the color of my side boxes. I have found in the CSS where to change the color from white to off-white but only the top of each box is changed. The bottom portion of each box is still white.

http://yonsidemanse.com/dwellinthegarden/

I suspect that I need to alter "box_bg.jpg" but I can't find it. The location is "background-image: url(../images/box_bg.jpg)" but what is the full URL where this is specifically located?

And if this is not the right solution, what should I be doing to completely change the color in all sideboxes?

Thanks for your help!


.leftBoxContainer, .rightBoxContainer {

margin: 0em;

border: 1px solid #9a9a9a;

border-bottom: 5px solid #384b38;

margin-top: 1.5em;

   /* create free space at the bottom of the box in which to display the image */
padding-bottom: 20px;
/* add the image to the boxes background */
**background-image: url(../images/box_bg.jpg);**
/* position the image at the bottom and center of the box */
background-position: bottom center;
/* EITHER set the image to not repeat */
background-repeat: no-repeat;
/* OR set it to repeat horizonatally */
background-repeat: repeat-x;

}
22 Jan 2008, 10:15 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #2 by kuroi

That file isn't a part of standard Zen Cart and nor is that CSS.

However, to answer your question, the CSS is expecting to find it at this location: includes/templates/classic/images/box_bg.jpg but it doesn't appear to actually exist on your site.

To apply that color to the whole of the box, add it to the CSS for .leftBoxContainer and .rightBoxContainer instead of .sideBoxContent.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

22 Jan 2008, 11:25 PM
#3
yonside avatar

yonside

New Zenner

Join Date:
Jan 2008
Posts:
6
Plugin Contributions:
0

Post #3 by yonside

kuroi:

That file isn't a part of standard Zen Cart and nor is that CSS.

Interesting. I pasted that code directly from the CSS of my Zen Cart, which is the standard cart, I believe.

Anyway, how would I apply this? I mean, do I create a square of color and name it "box_bg.jpg" and then save it to the URL you posted, since that line of code is already in my CSS? How do I know how large a box it should be?

Thanks!

22 Jan 2008, 11:40 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #4 by kuroi

No. Let go of that idea. It would work, but is unnecessarily onerous. To achieve the effect you want, just follow the advice I gave in the final paragraph of my previous post.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

23 Jan 2008, 12:52 AM
#5
yonside avatar

yonside

New Zenner

Join Date:
Jan 2008
Posts:
6
Plugin Contributions:
0

Post #5 by yonside

"No. Let go of that idea..." A very Zen way to answer! :smile:

So I applied the off-white color to the CSS for .leftBoxContainer and .rightBoxContainer instead of .sideBoxContent, and this time only the lower portion of the boxes were off-white, leaving the upper parts of the box white. Ack.

But I then applied that off-white color again to .sideBoxContent, and now all the boxes are the off-white color I want them to be. So your answer was very helpful in directing me to add a background-color tag to .leftBoxContainer and .rightBoxContainer.

Thanks so much for your help!