CSS background-image Property Example

Updated on     Kisan Patel

The CSS background-image property sets background images or gradients of an HTML element.

Syntax

background-image: none;
background-image: url(../images/background.png);
background-image: inherit;

Example

body {
 background-image: url("images/background.png.jpg");
}


CSS

Leave a Reply