Click to See Complete Forum and Search --> : [RESOLVED] Background image does not display


rickduley
02-07-2010, 07:10 PM
My CSS declares:

/* define #canvas which is the area in #screen where the work is done */
#canvas
{
width: 80%;

margin-left: 10%;
margin-right: 10%;

background-image: url('./img/perthLifeBackground.gif');
}

However, the image does not display. The image name is correct, the address is correct. What do I have wrong?

letmehaveago
02-07-2010, 10:06 PM
you haven't provided enough code for us to diagnose - the above code looks fine but what about the associated html.

rickduley
02-08-2010, 01:45 AM
Herewith all the code to date.
I appreciate the help.

rickduley
02-08-2010, 09:02 PM
PEBCAK! :o

I forgot that the CSS is not in the root folder so the address of the image had to be:

background-image: url('../img/perthLifeBackground.gif');

See the double period?

Mea Culpa. Sorry to have bothered anyone.