PDA

View Full Version : Insert Background Problem


olddrummer
07-04-2011, 05:40 PM
Here is the code I tried :
body {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
margin: 0;
background-image: url(../images/02back.png);
background-repeat: repeat-x;
}
cleaned cache,temp files...
No background showing up.
Please HELP!
Thanks in advance.

bruleo
07-04-2011, 05:44 PM
Just

background: url("../images/siteback.jpg") repeat-x;

.... and make sure you have the image in your template folder.

Bruce.

olddrummer
07-04-2011, 06:23 PM
Still not working. Here is the code i have up now...
body {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
margin: 0;
background: url("../images/01bsiteback.jpg") repeat-x;

Image is in folder.
Thanks

bruleo
07-04-2011, 06:54 PM
Just checked your actual CSS file as I still had your login. You missed off the closing bracket from the class. You did the same before if you remember and I fixed it for you. ;) I didn't do it this time as I have no idea if you are editing and don't want to overwrite anything.

Bruce.

olddrummer
07-04-2011, 07:20 PM
Thanks, but the background image does not line up right. Can you please let me know what the code is to have the image cover all of the background. Would just like to have the same image on both sides.
Thank you!

James
07-04-2011, 07:29 PM
You can make the image tall or make a bigger image and

http://css-tricks.com/3458-perfect-full-page-background-image/

use that for it

I do the pure css method

olddrummer
07-04-2011, 07:35 PM
Great, Thanks for the reply.

bruleo
07-04-2011, 07:58 PM
You have 'repeat-x'. That just repeats the image horizonatally (along the x axis).... 'repeat-y' will do it vertically and just 'repeat' will do for both.

Bruce.

olddrummer
07-04-2011, 08:25 PM
Thank you Bruce and James! Very good help here at phpld forum!