background-image

Previous- background-color  |  Next-background-repeat

Description

This property sets the background image of an element. When setting a background image, authors should also specify a background color that will be used when the image is unavailable.

When the image is available, it is rendered on top of the background color. (Thus, the color is visible in the transparent parts of the image).


Initial Value : none

Applies to : all elements

Inherited : no

Possible Values
<url> | none | inherit

Example(s)
body { background-image: url("marble.gif") }
p { background-image: none }

Previous- background-color  |  Next-background-repeat