Example

A simple background-image property example:

Laboratory

description & Usage

The background-image property determines whether one or more images will be used in the background image section.

Informations

# Description
Default Value none
Inherited no
Animatable no
Version CSS1 + new values in CSS3
JavaScript syntax object.style.backgroundImage="url()"

Syntax

Values

Values Description
url('URL') addresses or url images.
none Background image is not used.
conic-gradient() Sets a blended gradient (halo color) as the background.
linear-gradient() Sets a gradient (halo color) linearly as the background.
radial-gradient() Sets a gradient (halo color) radially as background.
repeating-conic-gradient() Defines a gradient (halo color) as a mixture.
repeating-linear-gradient() Defines a gradient (halo color) linearly.
repeating-radial-gradient() Sets a gradient (halo color) radially.
initial Adds this value to its default property.
inherit It inherits this value from its parent tag.