Forums / General Questions / How do I add a background Please!!

How do I add a background Please!!

Results 1 to 8 of 8
16 Oct 2012, 20:56
#1
darion avatar

darion

Zen Follower

Join Date:
Sep 2012
Posts:
169
Plugin Contributions:
0

How do I add a background Please!!

Hello,

Id like to add a background to my site. See I have the center of my site and then outside the borders on the sides is all white. Id like to add a background image there so that it will show on the sides of my website but not in the middle. Can anyone help me figure out how to do this please!!!


Thank you for your time and responses!!
16 Oct 2012, 21:25
#2
joejoejoe avatar

joejoejoe

Zen Follower

Join Date:
Oct 2011
Posts:
383
Plugin Contributions:
0

Re: How do I add a background Please!!

One of the "similar threads" below has the instructions for adding the image url to the correct place on your stylesheet.css
16 Oct 2012, 23:28
#3
darion avatar

darion

Zen Follower

Join Date:
Sep 2012
Posts:
169
Plugin Contributions:
0

Re: How do I add a background Please!!

I have been trying that and its not working it seems so easy but nothing here is the body tag from my css:

body {
margin: 0;
font-family: arial,verdana, helvetica, sans-serif;
font-weight: normal;
font-size: 75%;
color: #333333;
line-height: 180%;
background-image:URL('my full folders till /images/Shine-background.jpg');
}

what am I missing!!
16 Oct 2012, 23:42
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Posts:
21,876
Plugin Contributions:
6

Re: How do I add a background Please!!

URL('my full folders till /images/Shine-background.jpg')

This should not have the full server folder path, but just the relative path:
URL(images/Shine-background.jpg)
or better to put the image in /includes/templates/your_template/images where template images belong, and use this:
URL(../images/Shine-background.jpg)
16 Oct 2012, 23:49
#5
darion avatar

darion

Zen Follower

Join Date:
Sep 2012
Posts:
169
Plugin Contributions:
0

Re: How do I add a background Please!!

Thank you for your response I have the image in /includes/templates/your_template/images and have changed it to this: URL(../images/Shine-background.jpg) but still nothing not sure why.
17 Oct 2012, 00:22
#6
darion avatar

darion

Zen Follower

Join Date:
Sep 2012
Posts:
169
Plugin Contributions:
0

Re: How do I add a background Please!!

I just got it for those who may have a problem with this they were exactly right however I was over looking something very small I had jpeg instead of jpg that made the difference. Thank you all for your help!!
17 Oct 2012, 00:29
#7
joejoejoe avatar

joejoejoe

Zen Follower

Join Date:
Oct 2011
Posts:
383
Plugin Contributions:
0

Re: How do I add a background Please!!

Darion:

I just got it for those who may have a problem with this they were exactly right however I was over looking something very small I had jpeg instead of jpg that made the difference. Thank you all for your help!!

Glad to hear you found the problem. You're not the first to make that mistake - I spent a week going crazy trying to get imgaes to work before I learned that jpeg, jpg and JPG are not the same thing and I'm sure there a lot of others who won't admit to having done that themselves.
17 Oct 2012, 00:47
#8
darion avatar

darion

Zen Follower

Join Date:
Sep 2012
Posts:
169
Plugin Contributions:
0

Re: How do I add a background Please!!

Lol I can't make that excuse it was worse for me as I know they are different I was just over looking the fact that I had it wrong I was studying what could of been wrong for hours and must of looked at it hundreds of times but did not notice I had over looked that small problem. Had a buddy look at it and he saw it in 30 secs lol guess I just needed a fresh pair of eyes. :)