156
Creating Cool Web Sites with HTML, XHTML, and CSS
Table 7-4: CSS Styles Covered in This Chapter CSS Style
Definition
background color
Enables you to define the CSS container’s background color. Use it with the body tag to change the background of the entire page. Values are most commonly specified as #rrggbb, #rgb, or color names.
background image
Specifies the background image’s URL (use the form url(value) as the argument) for the CSS container.
background repeat
Determines whether or not to repeat (or tile) the background graphic. Values are repeat, repeat x, repeat y, or no repeat.
background position
Specifies where to place the background image within the CSS container.
Summary I could say a lot more about the fun and frustration of working with graphics and other media in Web pages, and I will over the next few chapters. One thing’s for sure: However people accomplish the task, you see a million slick graphics, icons, buttons, separator bars, and other gizmos all over the Web. Keep a skeptical eye on your own work, though, to make sure that your neat doodads don’t overtake the theme and message—the content—of your site. Good Web sites are built around content, not appearance. In my view at least, cool Web pages are those that intelligently incor porate their graphics into the overall design and that don’t fall apart or become unusable (or otherwise frustrating) when users don’t or can’t load everything. In Chapter 8, you learn about two very important design options, tables and frames, which offer much finer control over your page layout.