Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / How to insert a color band on top of page?

How to insert a color band on top of page?

Started by rolex on 13 Sep 2012, 3:56 PM · Views: 772

Results 1 to 6 of 6
13 Sep 2012, 3:56 PM
#1
rolex avatar

rolex

New Zenner

Join Date:
Jul 2012
Posts:
8
Plugin Contributions:
0

How to insert a color band on top of page?

Hello,

Objective: To add a color strip across the top of my page along with a different overall background color.

Background: 1) I'm a newbie. 2) I have searched throughout this forum and Google.

Action performed: Added the below code to the body line (1st line) of stylesheet.css from "avonlee_contempo" template I downloaded:

"background-color: #FFFFCC; background-image: url(images/background.jpg);background-repeat: repeat-x;" so the entire line looks like below:

"body {margin: 0;font-family: verdana, georgia, helvetica, sans-serif;font-size: 62.5%;color: #888787; background-color: #FFFFCC; background-image: url(images/background.jpg);background-repeat: repeat-x;}

Result: nothing changed, other than the entire background color changed to "FFFFCC". I do not see the image file repeated across.

Additional information: I stored the background.jpg in .../includes/templates/my_template/images

Question: Why is it not working?

13 Sep 2012, 4:10 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: How to insert a color band on top of page?

Try url(..images/background.jpg

13 Sep 2012, 4:17 PM
#3
rolex avatar

rolex

New Zenner

Join Date:
Jul 2012
Posts:
8
Plugin Contributions:
0

Re: How to insert a color band on top of page?

Hi stevesh, I tried that before and again it didn't work for me.

13 Sep 2012, 4:53 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,898
Plugin Contributions:
22

Re: How to insert a color band on top of page?

depending on your setup, it should be ../images/.... or ./images/.......

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

13 Sep 2012, 7:05 PM
#5
rolex avatar

rolex

New Zenner

Join Date:
Jul 2012
Posts:
8
Plugin Contributions:
0

Re: How to insert a color band on top of page?

dbltoe, unfortunately that did not work either.

13 Sep 2012, 7:19 PM
#6
stevesh avatar

stevesh

Black Belt

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

Re: How to insert a color band on top of page?

Then we'll need a link to the site.