Property | Description | Value |
---|---|---|
background-color | Is used to demonstrates background color of an element. | color(hex,RGBa,HSL) transparent(default) |
background-image | Is used to set background images to an element. | Url(image) none(default) |
background-size | Is used to demonstrates background image size. | contain, cover, auto(default) |
background-repeat | Is used to set repeat style background of an element. | repeat-x, repeat-y, repeat, space, round, no-repeat. |
background-position | Is used to the background image position. | top, bottom, left,right, center. |
background-attachment | Is used to set attachment style of background image which is scrolled or fixed. | local, scrolled, fixed |
background-origin | Is used to define the point from which background position is measured. | border-box, padding-box, content-box |
background-clip | Is used to define the background image clipping style. | border-box, padding-box, content-box |
background | Which is an shorthand to define all background setting in a single declaration. |