### 32.10 Supplying a background image or watermark

To provide a background image or a watermark, you can assign values to <body> attributes in the configuration file; for example:

    [Attributes]
    body= bgcolor="white" background="yourimage.jpg"

If you are targeting only Internet Explorer (as for HTML Help), to keep the image from scrolling with the text you could add:

    ... bgproperties="fixed"

All attributes and values must be on the same line, regardless of line length.

A better alternative would be to use CSS. There you could also specify that the image is to be centered, not tiled, which is probably what you would want for a watermark:

    body { background-color: white ;
           background-image: url(yourimage.jpg) ;
           background-repeat: no-repeat ;
           background-attachment: fixed ;
           background-position: center
    }

or just:

    body { background: white url(yourimage.jpg) no-repeat center fixed }

Previous Topic: 32.9.2 Specifying jumps from image maps in framesets

Next Topic: 33. Converting tables to HTML

Parent Topic: 32. Including graphics in HTML

Sibling Topics:

32.1 Locating graphics files for HTML

32.2 Specifying options for HTML graphics

32.3 Omitting graphics from HTML output

32.4 Selecting and modifying graphics

32.5 Positioning graphics in HTML output

32.6 Specifying HTML image attributes

32.7 Providing (or omitting) alternate text for images

32.8 Scaling images for HTML

32.9 Creating image maps for HTML