By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

CSS Background-image Property

The background image property of CSS is used to apply images as backgrounds to elements.

Edited: 2015-02-21 15:00

Background-image obviously sets the background image of a given element.

Possible Values

You either have the option to specify the URL for the image, or the keyword none.

Background-image Example:

In the following example i specify the URL for an image, which i want to use as background for body.

body {
  background-image: url("MyImage.png");

Inherited? - NO!