Chapter 11: Introducing CSS

Return to Chapter 11

 

To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

Adding Background Images

See it run: Adding Background Images

Script 11.8

This CSS shows how you can insert a background image by changing the body rule, specifying the background image's source and attributes.

Images:

shrew.gif
shakespeare.gif