Share this Page URL

Glossary > Glossary - Pg. 262

SUNDAY AFTERNOON Working with Styles 263 A new style property, the font-weight property, is used to set the weight of the links' text to bold. That can help a colored link stand out more clearly against a colored background. Setting a Background Image You can use styles to set a background image to be displayed behind the document body (or behind any other element). Set a background image to be displayed for the BODY element (see Figure 8.8): body { color: navy; background: #ffffcc url(b_whitesand.gif); } Notice that the background image declaration is added onto the color declaration of the background property. That is because the background property is actually a shortcut for setting a number of other properties,