HTML and CSS Reference
In-Depth Information
Figure 14.6 A report with a centered title, double-spaced lines, and indented paragraphs.
14.4.5 Working with Backgrounds and Images
The same way that wallpaper in a guest room can create a sense of warmth or calm, back-
ground images can add decoration and design to an otherwise blah page. CSS gives you
a number of ways to control the appearance of background images. Refer to Table 14.9.
Table 14.9 Image and Background Properties
Elements
Affected
Property
Value/Example
background-attachment
scroll, fixed
All
background-image
URL (bay.gif), none
All
background-position
right top, top center, center, bottom, 100%
100%, 0% 0%, 50% 50%
Block-level and
replaced elements
background-repeat
repeat, repeat-x (horizontally), repeat-y
(vertically), no-repeat
All
 
 
Search WWH ::




Custom Search