1
<!doctype html>
2
<title>Example</title>
3
<style>
4
.imageBox {
5
  padding: 30px;
6
  height: 150px;
7
  border: 1px solid black;
8
  background-image: url("/pix/samples/bg2.png");
9
}
10
</style>
11
<div class="imageBox">
12
<p>This div element has a background-image. To stop it repeating see the <a href="/css/properties/css_background-repeat.cfm">background-repeat</a> property.</p>
13
</div>