Forum Moderators: not2easy

Message Too Old, No Replies

Background colour change to image

         

ncds

4:19 am on Oct 12, 2008 (gmt 0)

10+ Year Member



Hi all
I'm a newbie @ cssand I'm hoping someone can point me in the direction i need.

I have a css based template for a Joomla site and I need to change the body background from a solid Grey to an image. my attempts have removed the background colour, so I'm in the right place. But I can't push it into displaying the stonbk.jpg. Below is the original code and what I've modified it to...

THanks

Micheal
Original code

body {
background-color: #ABABAB;
color: #5c635c;

}

changed to

body {
background-image: url(../gconjom/templates/js_earthblog/images/style3/stonbk.jpg);
background-repeat: repeat
color: #5c635c;
}

dreamcatcher

7:33 am on Oct 12, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi ncds,

Welcome to WebmasterWorld. :)

You are missing a semi colon after:

background-repeat: repeat

This would kill the whole body command, so thats probably your issue.

Failing that, the only explanation for it not working is the path is incorrect to the image. Check the path.

dc