Click to See Complete Forum and Search --> : Positioning a Background: The Watermark


aoiyuki
12-11-2002, 05:14 AM
hi
i'm new here^^

i can't get the Positioning a Background: The Watermark
to work at all.. what i get is a blank page:confused:
i copied and pasted the code from the goodies page and placed it under the <head> section after the </title>
like this:

<html>
<head><title>my html</title>
<STYLE TYPE="text/css">
BODY {background-image: D:\new html\roses.jpg;
background-repeat: no-repeat;
background-position: 200px 200px;}
</STYLE>
</head>

did i do it right? how can i get it to work?

Charles
12-11-2002, 06:03 AM
Oddly enough, the answer to this and any other CSS1 question can be found in the CSS1 specification. See http://www.w3.org/TR/REC-CSS1#color-and-background-properties.

Rick Bull
12-11-2002, 06:04 AM
background-image: D:\new html\roses.jpg should probably be background-image: url("file:///D:\new html\roses.jpg");

(file:/// is need if the file is on your HDD, I asume that's what you have and it's not that you are using a microsoft server, which I think lets you use URLs like that)

aoiyuki
12-11-2002, 07:17 AM
got it working ..
thanks!