PDA

View Full Version : Make a background image a watermark (tip)


BukHix
05-06-2002, 12:49 PM
If you would like to take an image and make it into a watermark, one that will stay stationary on the center of the page regardless of scrolling just add this to the top of the page in the head section.

<pre id=code><font face=courier size=2 id=code>
body {
background-image: url( images/ImageName.gif );
background-position: center;
background-attachment:fixed;
background-repeat: no-repeat;
}
</font id=code></pre id=code>

Just remember to alter the ImageName to match yours. This will work in IE 4+ and Netscape 6+

He who joyfully marches in rank and file has already earned my contempt. He has been given a large brain by mistake, since for him the spinal cord would suffice. - Albert Einstein & BukHix Liberty1st.org ( http://www.liberty1st.org/forum/ )