css display image as background code example
Example 1: background image css
.selector {
background-image: url(image.png);
}
Example 2: how to set div background image
body {
background-image: url("paper.gif");
background-color: #cccccc;
}
.selector {
background-image: url(image.png);
}
body {
background-image: url("paper.gif");
background-color: #cccccc;
}