background-repeat-y

A non-standard (but widely supported) property that specifically controls whether a background image repeats vertically. It is usually easier to use the standard 'background-repeat' property instead.

This is an experimental technology. The syntax and behavior are still subject to change.

/* Usage Example */
body {
  background-repeat-y: repeat;
  /* explicitly forces vertical repeat only (mostly for legacy compatibility) */
}

/* Global values */
background-repeat-y: inherit;
background-repeat-y: initial;
background-repeat-y: revert;
background-repeat-y: revert-layer;
background-repeat-y: unset;
Widely available Since 2015 94% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.

5+
5+
79+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC