PDA

View Full Version : Watermarks


AlienSkater23
09-15-2002, 10:19 AM
What is the tag to put a watermark in your background. That is where the background picture follows you as you scroll? Thanks

Chris

umm
09-15-2002, 10:54 AM
Put this in the head of your HTML document (or in an external style sheet).

<style type="text/css">
<!--
body {
background-image: url("Path to Image");
background-repeat: no-repeat;
background-position: center;
/*
background-attachment: fixed
*/
}
-->
</style>

If you remove the comments (/*...*/) from around...

background-attachment: fixed

...the text will scoll over the image. Depending on the browser, you may need to write the background image declaration right into the body tag like so.

<body
style="background-image: url("Path to Image");
background-repeat: no-repeat;
background-position: center;">


Just make sure you test either method in your preferred browsers.

hth

Nightfire
09-15-2002, 05:32 PM
Or if you don't want to align it, bgproperties="fixed" in the body tag