The background property
The background
property sets all
background properties at the same time:
background-attachment
,
background-color
,
background-image
,
background-position
,
background-repeat
,
background-size
,
background-origin
,
background-clip
.
The order of the properties does not matter. You
can omit unnecessary properties - in this case it
will take the default value. The background-position
and background-size
properties are specified
via a slash and in this case the order matters
(first position, then size).
Also, the background
property takes the
none
value, corresponding to the absence
of a background.
Syntax
selector {
background: properties;
}
See also
-
the
img
tag
that can be used to get an image