Click to See Complete Forum and Search --> : Background image using a Style tag


MattG1225
08-13-2003, 04:36 PM
I'm trying to get a background image on my page using background-image: and I'm having a hard time referencing the location on my hosting server. The image has been uploaded to this server folder:
D:\Lotus\Domino\Data\domino\html\michael\kids\images\

and my style code says this: <style type="text/css">

BODY{
background-image :
url(file:///D:/Lotus/Domino/Data/domino/html/michael/kids/images/background.jpg);
background-repeat: no-repeat;
background-color : "#697299";
}
</style>


But I'm only getting the backgound COLOR, not image. Am I using the wrong source code?

David Harrison
08-13-2003, 05:13 PM
You only have to reference the file relative to the page, so for example if the page is in the folder Data you would only have to do this:

background-image:url(domino/html/michael/kids/images/background.jpg);