Specifying a Background Image File

A background image appears behind the text on a page. By default, the image is tiled to fill the page, and scrolls with the page.

Unfortunately, there are plenty of amateurish and awkward examples of backgrounds on the Web. Here are some tips for making yours better than those:

  • Choose images that are designed to be tiled, so each copy blends smoothly into the next. When the image’s edges blend well, it will look like a single large image. For example, the following image blends well horizontally but has distracting edges vertically.

    Specifying a Background Image File

    The edges of the tiled copies of the following image blend together well in both directions. ...

Get HTML and XHTML Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.