- 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-coloris 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
nonevalue -
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
noneor as animagevalue - 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
imagedenoting the image to display - There can be several of them, separated by commas, as multiple backgrounds are supported
-
Is an
-