how to make an image the background of a div code example
Example 1: How to set a image as a backgroung image
<style>
body {
background-image: url('img_girl.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
</style>
Example 2: make image background of div
background-image: url("photographer.jpg");
Example 3: how to set div background image
body {
background-image: url("paper.gif");
background-color: #cccccc;
}