CSS background-image

Demo

Copy

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

Syntax

background-image: <value>

Possible Values

  • <uri>
  • none
  • inherit

Initial Value

none

Applies To

All elements

Inherited?

No

Media

Visual

Example Code

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