You can even position the image relative to the selected element.
237
Building Style Sheet Web Pages 7
FIGURE 7-15
You can achieve a number of different tiling effects by using the Repeat attribute of the CSS Background category.
The latest versions of browsers support the CSS Background attributes shown in Figure 7-16 and described
in Table 7-2.
FIGURE 7-16
The CSS Background options give you a much wider range of control over background images and color.
238
Designing and Crafting Core Pages Part II
TABLE 7-2
CSS Background Attributes
Background Setting Description
Background Color Sets the background color for a particular style. Note that this setting enables you to
set background colors for individual paragraphs or other elements.
Background Image Specifies a background image.
Repeat Determines the tiling options for a graphic:
no repeat displays the image in the upper-left corner of the applied style.
repeat tiles the background image horizontally and vertically across the applied style.
repeat-x tiles the background image horizontally across the applied style.
repeat-y tiles the background image vertically down the applied style.
Attachment Determines whether the background image remains fixed in its original position or
scrolls with the page.
Pages:
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514