Site maintenance: Tuesday 17 Nov, from 10: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 / Templates, Stylesheets, Page Layout / background image moved to the bottom edge of the web page

background image moved to the bottom edge of the web page

Started by rdcast on 23 Apr 2011, 7:07 PM · Views: 1,937

Results 1 to 20 of 25
23 Apr 2011, 7:07 PM
#1
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

background image moved to the bottom edge of the web page

I'm customizing ZC template "Barebones". I want to place a background image at the bottom of the white page, under:

Your IP Address is: 555.5.5.5
Copyright © 2011 my website. Powered by Zen Cart

The image is 800pxW X 200pxH and will be centered, from the bottom edge of the web page, up. How would I accomplish that?

I await your thoughtful response.
Thank you

23 Apr 2011, 7:38 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: background image moved to the bottom edge of the web page

Where can we see this?

Do you have the image attached to some ID in the stylesheet?

Zen-Venom Get Bitten

23 Apr 2011, 8:01 PM
#3
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: background image moved to the bottom edge of the web page

Because my site was hacked and replaced with a ######## site, i have started from scratch locally from my laptop, using EasyPHP as a virtual server for security while studying the situation, so it's going to be difficult to give you access.

"Bare Bones" can be found on the third row, last on the right. An no, I wouldn't know how to attach the image to an ID in the stylesheet. I have it stored in the images directory is all.

I await your thoughtful response.
Thank you

23 Apr 2011, 10:07 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: background image moved to the bottom edge of the web page

I wouldn't know how to attach the image to an ID in the stylesheet. I have it stored in the images directory is all.
Image should be in your templates /images directory

You can reference the classic stylesheet for examples

or

http://www.w3schools.com/css/css_background.asp
http://www.w3schools.com/css/pr_background-image.asp

Zen-Venom Get Bitten

24 Apr 2011, 2:51 PM
#5
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: background image moved to the bottom edge of the web page

My stylesheet isn't having any effect on the web site. Even if I erase its entire contents, nothing changes :huh:

I await your thoughtful response.
Thank you

24 Apr 2011, 2:53 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: background image moved to the bottom edge of the web page

My stylesheet isn't having any effect on the web site. Even if I erase its entire contents, nothing changes
Then you are not editing the correct sheet

Zen-Venom Get Bitten

24 Apr 2011, 3:09 PM
#7
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: background image moved to the bottom edge of the web page

I can think of only 3, the one in my custom template, one in template_default and the one in html_includes. I have tested all three.

I await your thoughtful response.
Thank you

24 Apr 2011, 3:12 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: background image moved to the bottom edge of the web page

Post a link

Zen-Venom Get Bitten

24 Apr 2011, 3:21 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: background image moved to the bottom edge of the web page

Bad link

Zen-Venom Get Bitten

24 Apr 2011, 3:42 PM
#11
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: background image moved to the bottom edge of the web page

you have to use my database, generated from EasyPHP... It's a virtual server on my laptop, employed for security purposes until I feel confidant my site is not so vulnerable to attack as it was before

I await your thoughtful response.
Thank you

24 Apr 2011, 3:49 PM
#12
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: background image moved to the bottom edge of the web page

OOPZ!!!

Now, the stylesheet located in html_includes, follows this path:

...languages\english\html_includes\my_template\css\stylesheet.css

Should it be?:

**...languages\english\html_includes\css\stylesheet.css

**i had left out the html_includes sub-directory

I await your thoughtful response.
Thank you

24 Apr 2011, 4:39 PM
#13
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: background image moved to the bottom edge of the web page

...languages\english\html_includes\my_template\css\stylesheet.css
That is NOT where stylesheets belong

They should be in

...includes\templates\my_template\css\stylesheet.css

Zen-Venom Get Bitten

24 Apr 2011, 4:43 PM
#14
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: background image moved to the bottom edge of the web page

then i should delete the other two i suppose

I await your thoughtful response.
Thank you

24 Apr 2011, 5:00 PM
#15
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: background image moved to the bottom edge of the web page

Is there some way I can determine where the stylesheet is, that the web site is using, while it's in my browser ?

I await your thoughtful response.
Thank you

25 Apr 2011, 3:10 AM
#16
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: background image moved to the bottom edge of the web page

Is there some way I can determine where the stylesheet is, that the web site is using, while it's in my browser ?
In the browser, view the source and it will be along these lines

<link rel="stylesheet" type="text/css" href="includes/templates/classic/css/stylesheet.css" 

Zen-Venom Get Bitten

29 Apr 2011, 5:55 PM
#17
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: background image moved to the bottom edge of the web page

I eliminated the problem by starting over. Thank you

I await your thoughtful response.
Thank you

29 Apr 2011, 6:27 PM
#18
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: background image moved to the bottom edge of the web page

What i would love to do now is to add an image to the top of the page like in the "Simply Kerrin" template. Here is the code for this effect found in its stylesheet:

#mainWrapper {
    text-align: left;
    width: 90%;
    vertical-align: top;
    border-bottom: 1px solid #677f39;
    }
    
.skwrapper {
    padding-bottom: 2em;
    margin-top: 1em;
    }
    
.skwrapper td.tl {
    background: url(../images/kwtl.png) top left no-repeat;
}

.skwrapper td.tp {
    background: url(../images/kwt.png) top repeat-x;
}

.skwrapper td.tr {
    background: url(../images/kwtr.png) top right no-repeat;
}

.skwrapper td.l {
    background: url(../images/kwl.png) left repeat-y;
}

.skwrapper td.mid {
    background: #ffffff;
}

.skwrapper td.bl {
    background: url(../images/kwbl.png) bottom left no-repeat;
}

.skwrapper td.bt {
    background: url(../images/kwb.png) bottom repeat-x;
}

.skwrapper td.br {
    background: url(../images/kwbr.png) bottom right no-repeat;
}
    

.skwrapper td.r {
    background: url(../images/kwr.png) right repeat-y;
}

I've tried to use some of the code in my stylesheet to no avail. Any thoughts on how to accomplish my goal?

I await your thoughtful response.
Thank you

29 Apr 2011, 6:36 PM
#19
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: background image moved to the bottom edge of the web page

What i would love to do now is to add an image to the top of the page
Too vague

What image?
Where you want it?
Fixed or inside of some existing element?
rtc

Zen-Venom Get Bitten

29 Apr 2011, 6:43 PM
#20
rdcast avatar

rdcast

Zen Follower

Join Date:
Feb 2010
Posts:
332
Plugin Contributions:
0

Re: background image moved to the bottom edge of the web page

kobra:

Too vague

What image?
Where you want it?
Fixed or inside of some existing element?
rtc

it would be on the outside of the web page, on the top, as an edging and not inside of any element. The image will stretch the length of the page it rests on top of. Further, it will be a no-repeat.

I await your thoughtful response.
Thank you