how to add image in background for div class code example
Example 1: how to set div background image
body {
background-image: url("paper.gif");
background-color: #cccccc;
}
Example 2: how to embed a url in html for background
div {
/* Background pattern from Toptal Subtle Patterns */
background-image: url("https://amymhaddad.s3.amazonaws.com/morocco-blue.png");
height: 400px;
width: 100%;
}