Sams Teach Yourself HTML 4 in 24 Hours

Sams Teach Yourself HTML 4 in 24 Hours

By Dick Oliver

Background Image Tiles

Background tiles let you specify an image to be used as a wallpaper pattern behind all text and graphics in a document. You put the image filename after background= in the <body> tag at the beginning of your page:

<body background="image.jpg">

Like other Web graphics, background tiles must be in either the GIF or JPEG file format, and you can create them by using Paint Shop Pro or any other graphics software. For example, the tile.gif file referred to by the <body> tag in Figure 11.3 is an image of one small tile. As you can see in Figure 11.4, most Web browsers will repeat the image behind any text and images on the page, like floor tile.

11fig03.gif

Figure 11.3 You can specify a background image to tile behind a page in the background attribute of the <body> tag.

11fig04.jpg

Figure 11.4 The tile.gif file (specified in Figure 11.3 and shown in Figure 11.5) is automatically repeated to cover the entire page.

Share ThisShare This

Informit Network