Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
background-attachment
background-color
background-position
background-repeat
background
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-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information