Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Bizarre Happenings when changing stylesheet

Bizarre Happenings when changing stylesheet

Locked

Views: 760

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
8 Sep 2009, 2:07 PM
#1
thirith avatar

thirith

New Zenner

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

Bizarre Happenings when changing stylesheet

Hi there.

I am totaly new to Zen, My father just roped me in to help with setting up his store.

I want to add a backgroud image to the store.

I made a copy of the Clasic template and changed the name and the template_info.php file to reflect the new name.

I then opened the stylesheet.css and did this:

body {
	margin: 0;
	font-family: verdana, arial, helvetica, sans-serif;
	font-size: 62.5%;
	color: #000000;
	background-color: #f4f4f4;
	background-image: url(../image/title_back.jpg);
	}

but instead of adding a background image, the side bars vanished

Can anyone explain to me why this is happning? and how am I ment to fix it?

Thanks in advance

Josh

8 Sep 2009, 2:16 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Bizarre Happenings when changing stylesheet

Did you click the Reset button at the bottom of the Tools > Layout Box Controller page after selecting the new template?

8 Sep 2009, 2:22 PM
#3
thirith avatar

thirith

New Zenner

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

Re: Bizarre Happenings when changing stylesheet

I have done so now and it reset the the boxes perfectly, thanks!
But the image I want to display dosent show. Can you think why that might be?

8 Sep 2009, 2:46 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Bizarre Happenings when changing stylesheet

Try it with images

background-image: url(../images/title_back.jpg);

8 Sep 2009, 2:58 PM
#5
gjh42 avatar

gjh42

Black Belt

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

Re: Bizarre Happenings when changing stylesheet

And is your image really named title_back.jpg? The standard version of this is named tile_back.gif. Be sure you haven't confused title for tile.

8 Sep 2009, 3:04 PM
#6
thirith avatar

thirith

New Zenner

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

Re: Bizarre Happenings when changing stylesheet

Thanks for the correction but unfortunatly it didnt work.

How is an image generaly shown?
The file that I am using is a small tile which is ment to be repeted.
Here is the kind of effect im looking for https://www.evo-parts.co.uk

I want the carbon fibre effect on the background to be carried over to the shop (which can be seen by clicking on Products)

the tile is suposed to be repeted to give that effect

is it possible that the picture is simply in the centre of the page and therefore not seen?

8 Sep 2009, 3:06 PM
#7
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,607
Plugin Contributions:
0

Re: Bizarre Happenings when changing stylesheet

Which /images directory did you put the image in?

8 Sep 2009, 3:07 PM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Bizarre Happenings when changing stylesheet

Exactly where did you save the tile image? Can we have a link to see your site live? That often allows diagnosis that would be impossible otherwise.

OK, I see the way to get to the link...

8 Sep 2009, 3:14 PM
#9
thirith avatar

thirith

New Zenner

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

Re: Bizarre Happenings when changing stylesheet

Took gjh42's advice (Didnt see it when i posted last) Problem is all solved!

Thanks guys!

Link to live site http://www.evo-parts.co.uk/eshop