Difference between revisions of "CSS GUIDE BACKGROUND IMAGE"

From CDOT Wiki
Jump to: navigation, search
(Legal Values)
(Usage Examples)
Line 30: Line 30:
  
 
== Usage Examples ==
 
== Usage Examples ==
 +
<pre>body { background-image: url("images/mybackground.png"); }
 +
 +
p { background-image: none; }
 +
</pre>
  
 
== Notes ==
 
== Notes ==

Revision as of 00:45, 22 November 2006

Summary

The background image property is used to set the background image for a given element.

Applicability:The background image property can be used for all CSS elements.
Media Group: Visual
Inherited:No

Syntax

Legal Values

urlA URL path to an image file to be used as the background image.
noneSpecifies that no background image is to be used.

Mozilla Recommended Values

Usage Examples

body { background-image: url("images/mybackground.png"); }

p { background-image: none; }

Notes

Specification Conformance

Browser Compatibility

See Also