HTML and CSS Reference
In-Depth Information
5.3.1.2. The background attribute
If a splash of color isn't enough, you may also place an image into the
background of a document with the background attribute in the <body>
tag.
The required value of the background attribute is the URL of an image.
The browser automatically repeats (tiles) the image both horizontally
and vertically to fill the entire window.
You normally should choose a small, somewhat dim image to create an
interesting but unobtrusive background pattern. Besides, a small, simple
image traverses the network much faster than an intricate, full-screen
image.
Figure 5-20 and 5-21 show you how the extended browsers render a
single wood panel as an individual picture and then tile it to create a
paneled wall when included as a document's background:
Figure 5-20. A single wood panel...
Search WWH ::




Custom Search