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.