1. Home
  2. Computing & Technology
  3. Web Design / HTML

How Can I Create a Watermark on a Web Page?

By Jennifer Kyrnin, About.com

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.

Explore Web Design / HTML
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. CSS
  5. How to Create a Fixed Background Image or Watermark>

©2009 About.com, a part of The New York Times Company.

All rights reserved.