Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / using seperate images for sideboxes and centreboxes

using seperate images for sideboxes and centreboxes

Locked

Views: 886

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
7 Nov 2007, 9:47 PM
#1
edealbase avatar

edealbase

New Zenner

Join Date:
Nov 2007
Posts:
35
Plugin Contributions:
0

using seperate images for sideboxes and centreboxes

Hey, after adding an image to my sideboxes i thought it was all a but to blue so i made another image of the same dimensions to my images folder it was only a different colour.

I them when to my stylesheet and found this bit

.leftBoxHeading, .centerBoxHeading, .rightBoxHeading {
	margin: 0em;
	background-color: #abbbd3;
	background-image: url(../images/tile_back.gif);
	padding: 0.5em 0.2em;
	}

I edited this to say

.leftBoxHeading, .rightBoxHeading {
	margin: 0em;
	background-color: #abbbd3;
	background-image: url(../images/tile_back.gif);
	padding: 0.5em 0.2em;
	}

.centerBoxHeading {
                  margin: 0em;
	background-color: #abbbd3;
	background-image: url(../images/centerbox_tile_header.gif);
	padding: 0.5em 0.2em;*

This messes up the whole layout of the page though, is there anyway i can get this too work and why does it mess up the layout?

Thanks

7 Nov 2007, 10:05 PM
#2
kuroi avatar

kuroi

Totally Zenned

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

Re: using seperate images for sideboxes and centreboxes

To answer this question we really need to see the site, and have a more specific statement of the problem than "this messes up the whole layout of the page". Though I'm guessing that the asterisk at the end of the .centerBoxHeading styles in place of a curly bracket might be a bit of a cliue. :wink:

Kuroi Web Design and Development | Twitter

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

8 Nov 2007, 8:55 AM
#3
edealbase avatar

edealbase

New Zenner

Join Date:
Nov 2007
Posts:
35
Plugin Contributions:
0

Re: using seperate images for sideboxes and centreboxes

Ive changed the site back so it wouldnt help to see it, however what happens is that all the sideboxes lose their borders and squash up.

The new products box in the center which usually displays a 3 x 3 view of products, displays 1 X 9 view

The } was originaly there i changed it back before i wrote this thread so i had to write the code again and i made a mistake!

8 Nov 2007, 9:12 AM
#4
kuroi avatar

kuroi

Totally Zenned

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

Re: using seperate images for sideboxes and centreboxes

There's nothing wrong with your revised CSS above (with the correction). It would do exactly what you wanted it to do.

There must have been another syntactic error, but without seeing the actual code you used, I have no way of knowing what it might have been.

I'd recommend trying again, since you were heading along the right lines.

Kuroi Web Design and Development | Twitter

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