CSS2 » Properties » background-image

Version: Level 1

Compability:  IE4+  N4+

Syntax:
background-image : url | none
none
The none value is the default. No background image is selected. By declaring none, you can ensure that any previous declaration will not effect a specific background.
url
The url value is the full path to a named image, or the name of the image. The syntax is demonstrated in the code examples.

The background-image property allows you to select an image to use as the background. This property is not inherited.

Examples

Code:
code { background-image: url("comet.jpg"); }
blockquote { background-image: url("c:\InetPub\MyPixs\comet.jpg"); }
br { background-image: url("http://Fred.com/ImageFile/Q.gif"); }
body { background-image: none; }
Language(s): CSS2

See Also: