CSS2 » Properties » background-image

Version: Level 1

Compability:  IE4+  N4+

background-image : url | 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.
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.


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: