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
url | A URL path to an image file to be used as the background image. |
none | Specifies 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
| CSS 1
| CSS 2.1
| CSS 3
Browser Compatibility
See Also