CSS background-image

Demo

The CSS background-image property is used to specify a background image of an element.

Syntax

background-image: <value>

Possible Values

  • <uri>
  • none
  • inherit

Specifications

Initial Value
none
Applies To
All elements
Inherited?
No
Media
Visual

Example Code

background-image:url("/pix/smile.gif")