Difference between revisions of "CSS GUIDE BACKGROUND IMAGE"
m |
(revert) |
||
Line 7: | Line 7: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td><b>[http://developer.mozilla.org/en/docs/CSS: | + | <td><b>[http://developer.mozilla.org/en/docs/CSS:%40media#Media_groups Media Group:]</b> |
</td><td>Visual</td> | </td><td>Visual</td> | ||
</tr> | </tr> |
Latest revision as of 16:12, 10 April 2007
Contents
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
TARGET_ELEMENT {background-image: value ;}
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
It is strongly recommended that developers should specify a background-color to be used if a given image is not available. This is similar to placing alternate text for images.t available. Background images are rendered in the foreground (i.e on top of the background color). This should be considered when using images with transparent background.
Usage Examples
body { background-image: url("images/mybackground.png"); } p { background-image: none; }
Notes
See Mozilla Recommended Values section.