CSS · Properties — CSS Backgrounds and Borders
background
The CSS background property. Initial value: background-image,background-position,background-size,background-repeat,background-origin,background-clip,background-attachment,background-color. Not inherited.
Syntax
background: <bg-layer>#? , <final-bg-layer>Example
Try it
Notes
Media: visual. Applies to: allElements. Computed value: background-image,background-position,background-size,background-repeat,background-origin,background-clip,background-attachment,background-color.
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.