PROPERTY: background-image

background-image : url | none
 
Compatibility:  IE4+  N4+
Version: Level 1
Inherited: No No
 
The background-image property allows you to select an image to use as the 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.
 
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.
 
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; }

 
Output:
Click to see example in a separate window


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information