
Originally Posted by
Bree
I'm trying to put on a watermark background and can't seem to get it to work. Here is my code...
This shouldn't be a script. It should be declaration in a style sheet[1]. If you have a style sheet in your document already, merge the following with that.
Code:
body {
background: url(http://tinypic.com/2jz8e0) white center no-repeat fixed;
}
If you don't have a style sheet, wrap the above with the following mark-up and place it inside the head element.
HTML Code:
<style type="text/css">
/* Place rule here. */
</style>
If you look closely, you'll notice that I removed a single quote. That was what was causing the problem. The functional notation - url(...) - is essential for specifying remote images and removing that would certainly not help.
By the way, I hope you aren't intending to serve a bitmap over the Internet. A JPEG would cut the file size to a tenth of the current ~100KB.
Mike
[1] For all intents and purposes, it is. It produces exactly the same result, only with the unnecessary reliance upon scripting.
Bookmarks