CSS Background-image Property

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

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.

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!

Post comment

Links that you insert are not nofollowed, but will be removed by admins if they are considered spam.

[url=Absolute URL for page]TITLE[/url]

You should insert code boxes around code examples, which will be automatically syntax highlighted.

[code1 html|css|javascript|php|sql]Your Code Here[/code1]

You may want to read our Privacy Policy before submitting your comment.