xxxxxxxxxx
body {
background-image:url("../images/myImage.jpg");
background-repeat: no-repeat;
background-size: 100% 100%;
}
xxxxxxxxxx
<style>
.divWithBackground {
background-image: url("path/to/image.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
</style>
<div class="divWithBackground">
Content of the div
</div>