<?xml version="1.0" encoding="utf-8"?>

CSS background-repeat property

CSS background-repeat property

The background-repeat property controls the way the image is repeated. In this scenario, to repeat the background along the y-axis, you should use the value repeat-y. What happens when we don't specify this property? The browser repeats the image both vertically and horizontally by default.

Improve your UX & Product skills with interactive courses that actually work