1. Computing

Discuss in my forum

How Can I Create a Watermark on a Web Page?

By , About.com Guide

Question: How Can I Create a Watermark on a Web Page?
Answer:

Watermarks are easy to create using three CSS style properties:

You use background-image to define the image to use as your watermark, background-repeat to make it display only once, and background-attachment to turn it into a watermark.

Add the following to the HEAD of your Web page. Change the URL to your background image, and you'll have a watermark:

 <style>
 <!--
 body {
 background-image: url(image.gif);
 background-repeat: no-repeat;
 background-attachment: fixed;
 }
 //-->
 </style> 

If you want to place the watermark in a specific location on your Web page (say, the middle of the page), add the background-position property to your style to place the image.

Related Video
Add a Background Image to a Webpage
  1. About.com
  2. Computing
  3. Web Design / HTML
  4. CSS
  5. CSS Tutorials
  6. How to Create a Fixed Background Image or Watermark

©2013 About.com. All rights reserved.