We use cookies to improve your experience. Learn more in our Privacy policy.
background-image
Sets one or more background images on the element.
Example
Initial value | none |
Applies to | all elements. It also applies to ::first-letter and ::first-line. |
Syntax
background-image: url('../background.png');
Values
No background image.
A url path to the image to be shown as background of the target element.
Browser support
background-image | 1 | 12 | 1 | 4 | 3.5 | 1 |
element | 4 | |||||
gradients | 1 | 12 | 3.6 | 10 | 11 | 4 |
image-rect | 4 | |||||
image-set | 21 | 79 | 15 | 6 | ||
multiple_backgrounds | 1 | 12 | 3.6 | 9 | 10.5 | 1.3 |
svg_images | 8 | 12 | 4 | 9 | 9.5 | 5 |