The background-repeat property sets if/how a background image will be repeated.

By default, a background-image is repeated both vertically and horizontally.

div {
  background-image: url("img.jpg");
  background-repeat: repeat-y;
}

Here’s how a background-repeat: repeat-y looks like: