We use cookies to improve your experience. Learn more in our Privacy policy.
background
All background style properties, such as color, image, origin, and size, as well as the repeat method, are set all at once.
Example
Initial value | Initial value of each property defined in the background property |
Applies to | all element in the page |
Syntax
background: url("background.png") no-repeat;
Values
See background-attachment
See background-clip and background-origin
See background-color
See background-image
See background-position
See background-repeat
See background-size.
Browser support
background | 1 | 12 | 1 | 4 | 3.5 | 1 |
SVG_image_as_background | 1 | 12 | 4 | 9 | 9.5 | 3.1 |
background-clip | 21 | 12 | 22 | 9 | 15 | 5.1 |
background-origin | 21 | 12 | 22 | 9 | 15 | 5.1 |
background-size | 21 | 12 | 9 | 9 | 21 | 5.1 |
multiple_backgrounds | 1 | 12 | 3.6 | 9 | 10.5 | 1.3 |