You can apply multiple backgrounds to elements. These are layered atop one another with the first background you provide on top and the last background listed in the back. Only the last background can include a background color.
Specifying multiple backgrounds is easy:
.myclass { background: background1, background2, /* … ,*/ backgroundN; }
You can do this with both the shorthand background
property and the individual properties thereof except for background-color
. That is, the following background properties can be specified as a list, one per background: background
, background-attachment
, background-clip
, background-image
, background-origin
, background-position
, background-repeat
, background-size
.