- The background-image CSS property sets one or more background images on an element
- The background images are drawn on stacking context layers on top of each other
- The first layer specified is drawn as if it is closest to the user
- The borders of the element are then drawn on top of them
-
And the
background-color
is drawn beneath them -
If a specified image cannot be drawn (for example, when the file denoted by the
specified URI cannot be loaded), browsers handle it as they would a
none
value -
Even if the images are opaque and the color won't be displayed in normal circumstances,
web developers should always
specify a
background-color
-
Each background image is specified either as the keyword
none
or as animage
value - To specify multiple background images, supply multiple values, separated by a comma
-
values
-
none
Is a keyword denoting the absence of images -
image
-
Is an
image
denoting the image to display - There can be several of them, separated by commas, as multiple backgrounds are supported
-
Is an
-