The CSS background is a shorthand property that is used to set the background style for an element.
This shorthand property can be used to set the following CSS background properties in a single declaration.
Property | Description |
background-color | Specifies the background color |
background-image | Specifies the background image |
background-position | Specifies the position of the background image |
background-size | Specifies the size of the background image |
background-repeat | Specifies how the background should repeat |
background-origin | Specifies the positioning area of the background image |
background-clip | Specifies whether the background of an element should extend underneath its border. |
background-attachment | Specifies whether the background image should appear fixed or scroll within the block. |
Subscribe
Join the newsletter to get the latest updates.