Forums / Templates, Stylesheets, Page Layout / Adding a background image behind my ZenCart pages

Adding a background image behind my ZenCart pages

Locked

Views: 1,851

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
27 Aug 2008, 5:54 PM
#1
vfrazier avatar

vfrazier

New Zenner

Join Date:
Jul 2008
Location:
Midwest
Posts:
80
Plugin Contributions:
0

Adding a background image behind my ZenCart pages

Is it possible to add a background image behind your ZenCart store pages?

IOW, instead of the colored background, AKA wasted space, filler, or edges, I'd like to have my logo or other store related image tiled across the otherwise empty space.

thx

27 Aug 2008, 6:05 PM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Adding a background image behind my ZenCart pages

You can do that in includes/templates/YOUR_TEMPLATE/css/stylesheet.css.

This is a sample from the stylesheet from the Fan Odyssey site in my sig.

#mainWrapper {
	background-color: #000000;
  background-image: url('../images/space011.jpg');
	text-align: left;
	width: 100%;
	vertical-align: top;
	}

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

28 Aug 2008, 3:35 PM
#3
vfrazier avatar

vfrazier

New Zenner

Join Date:
Jul 2008
Location:
Midwest
Posts:
80
Plugin Contributions:
0

Re: Adding a background image behind my ZenCart pages

Thanks for the help. It worked great.

28 Aug 2008, 4:05 PM
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Adding a background image behind my ZenCart pages

I have that image in various points in the stylesheet which is why it appears as the background to the entire site. If you need the other locations, let me know, but it shouldn't be too hard to figure out.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

2 Sep 2008, 9:33 PM
#5
vfrazier avatar

vfrazier

New Zenner

Join Date:
Jul 2008
Location:
Midwest
Posts:
80
Plugin Contributions:
0

Re: Adding a background image behind my ZenCart pages

If you can spare a minute, I'd love to know the various locations. This is my first attempt at this type of webstore and I am struggling to get over the hump. Thanks in advance.

2 Sep 2008, 11:55 PM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Adding a background image behind my ZenCart pages

If you have a fixed width page, or space to the sides of the sidebars, you would want to put that background-image in the body {} rule at the very top of the stylesheet.

Anything that has a class or id tag or an HTML element can have a background-image added to it, so there is not a "list" of places as such.

3 Sep 2008, 3:29 AM
#7
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Adding a background image behind my ZenCart pages

Here's all the places I added it for the Fan Odyssey site in my sig. I just copied the code I changed. There'll be other stuff in between.

#mainWrapper {
	background-color: #000000;
  background-image: url('../images/space011.jpg');
	text-align: left;
	width: 100%;
	vertical-align: top;
	}

#logoWrapper{
  background-image: url('../images/space011.jpg');
	background-repeat: repeat-x;
	background-color: #000000;
	height:110px;
	width: 100%;
	}

#navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
	margin: 0em;
	background-color: #000000;
	background-image: url('../images/space011.jpg');
	padding: 0.5em 0.2em;
	font-weight: bold;
	color: #ffffff;
	height: 1%;
	width: 100%;
	}

#navCatTabsWrapper {
	background-color: #000000;
	background-image: url('../images/space011.jpg');
	color: #ffffff;
}

.centerBoxWrapper {
  background-color: #000000;
  background-image: url('../images/space011.jpg');
	border: 1px solid #9a9a9a;
	height: 1%;
	margin: 1.1em 0;
	}
.leftBoxContainer, .rightBoxContainer {
  background-color: #000000;
  background-image: url('../images/space011.jpg');
	margin: 0em;
	border: 1px solid #c0c0c0;
	border-bottom: 5px solid #COCOCO;
	margin-top: 0.5em;
	}

.sideBoxContent {
  background-color: #000000;
  background-image: url('../images/space011.jpg');
	padding: 0.4em;
	}

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

3 Sep 2008, 1:04 PM
#8
vfrazier avatar

vfrazier

New Zenner

Join Date:
Jul 2008
Location:
Midwest
Posts:
80
Plugin Contributions:
0

Re: Adding a background image behind my ZenCart pages

Thanks for the help. I'm working on the changes now.

Another thing that I have been looking for is the command that centers your page on the screen. As opposed to having everything left justified.

4 Sep 2008, 2:16 PM
#10
vfrazier avatar

vfrazier

New Zenner

Join Date:
Jul 2008
Location:
Midwest
Posts:
80
Plugin Contributions:
0

Re: Adding a background image behind my ZenCart pages

thanks for your help. I've made a lot of progress in the last few days.