background-repeat

Sets how background images are repeated. A background image can be repeated along the horizontal and vertical axes, or not repeated at all.

It is documented as part of the CSS Backgrounds and Borders specification.

/* Usage Example */
.texture {
  background-image: url(';tile.png');
  background-repeat: repeat;
  /* tiles the image across the entire background */
}

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

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

1+
1+
1+
12+
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