Skip to Content


CSS Reference / background-image

background-image

Sets an image as the background. The image will repeat itself by default, unless you specify something else in the background-repeat property. The image path can be relative or absolute.

Values:

  • url
  • none

Examples:

  1. background-image: url(image.gif);
  2. background-image: url(http://www.yoursite.com/images/image.gif);

Browser support:

  • Internet Explorer 4+
  • Netscape 4+
  • Opera 3.6+

Related properties:

back to list



Search

Sponsors

Logo design for $149

Advertise here