CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS background image Property

CSS background-image Property

 

 

The background-image property is used to set one or more background images for an element. It is placed in the top-left corner by default and is repeated in both directions.

 

Default Value:-

 

Its default value is none.

 

Syntax:-

 

Its syntax is:- background-image: URL | none | initial | inherit;

 

Further Explanation:-

 

Value Description
URL("URL") The URL to the image. To specify more than one image, separate the URLs with a comma
none No background image will be displayed.
conic-gradient() Sets a conic gradient as the background image.
linear-gradient() Sets a linear gradient as the background image.
radial-gradient() Sets a radial gradient as the background image.
repeating-conic-gradient() Repeats a conic gradient
repeating-linear-gradient() Repeats a linear gradient
repeating-radial-gradient() Repeats a radial gradient
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS