The background-repeat property sets how each background-image tiles inside the painting area. The image can repeat on both axes, only one axis, or not at all. space leaves even gaps. round stretches copies so they fit without gaps.
The initial value is repeat. The property is not inherited. One keyword can cover both axes. Two keywords set horizontal first, then vertical. With several images, list a repeat value for each image, separated by commas. background-position places a single no-repeat image.
Standard.
Not deprecated. repeat, no-repeat, repeat-x, repeat-y, space, and round are Baseline. Logical values such as repeat-block and repeat-inline are newer and still limited.
Fit whole tiles only.space does not clip edge copies the way repeat does.
Pin the first and last. Copies sit against the edges when more than one fits, and leftover room becomes even gaps.
Position is mostly ignored. With space, the browser places the tiles. background-position matters mainly when only one tile fits.
Compare with round.round also avoids gaps from clipping, but it stretches each tile instead of adding whitespace.
Edge Cases & Pitfalls
If the tiles look clipped, stretched, or missing, one of these is usually why.
clip
repeat can cut the edges
When the box size is not a multiple of the tile size, edge copies are clipped. Use space for whole tiles with gaps, or round for whole tiles that stretch.
round
round can distort the image
It is the only common value that may change the tile aspect ratio so copies fill the box without gaps. Prefer space if you must keep the original proportions.
size
Tile size comes from background-size
A huge image with repeat may look like one copy. Set background-size so each tile is small enough to see the pattern.
position
space mostly ignores position
background-position places a no-repeat image. With space, the browser pins and spaces the tiles unless only one tile fits.
shorthand
The background shorthand resets repeat
A later background: #fff sets every background longhand, including background-repeat: repeat. Set repeat after the shorthand, or include it in the shorthand.
Compatibility
Browser Support
background-repeat is a browser painting property. Node.js, Deno, and Bun do not apply it. Basic keywords are older than space and round. Logical values such as repeat-block are newer.
✓ Baseline · Widely available since 2015
background-repeat
repeat, no-repeat, repeat-x, repeat-y: every current browser and IE 4+. space and round: Chrome 30+, Firefox 49+, Safari 7+, Edge 12+. Multiple backgrounds: IE 9+.
99%Core keywords
Google Chrome1+ · 30+ space/round
Full support
Mozilla Firefox1+ · 49+ space/round
Full support
Apple Safari1+ · 7+ space/round
Full support
Microsoft Edge12+
Full support
Opera3.5+ · 17+ space/round
Full support
Samsung Internet1+
Full support
Internet Explorer4+ · no space/round
Partial
background-repeatWidely supported
Bottom line: Safe for repeat, no-repeat, repeat-x, and repeat-y everywhere. Use space and round freely in current browsers; they are missing in Internet Explorer. Prefer physical keywords over repeat-block / repeat-inline on a normal page.
Remember
Key Takeaways
Role: choose how each background image tiles — both axes, one axis, or not at all.
Values:repeat, no-repeat, repeat-x, repeat-y, space, and round.
Initial value:repeat. It is not inherited.
Gaps vs stretch:space adds gaps; round may stretch tiles to avoid gaps.
One line:background-repeat decides whether the image tiles — after you have an image, and often after you set a clear tile size.
Frequently Asked Questions
It sets how each background image tiles inside the painting area. The image can repeat on both axes, only horizontally, only vertically, or not at all. space and round control gaps and stretching. The initial value is repeat.
repeat, which means repeat on both axes. Edge tiles may be clipped if the box size is not a multiple of the image size. The property is not inherited.
no-repeat shows one copy. repeat-x tiles only left to right. repeat-y tiles only top to bottom. Use background-position to place a single no-repeat image.
space tiles without clipping and puts even gaps between copies. round tiles without gaps and may stretch each copy so they fit the box evenly. round is the value that can change the image aspect ratio.
Yes. Two keywords set horizontal first, then vertical, such as repeat no-repeat. That is the long form of repeat-x. With several images, list a repeat value for each image, separated by commas.
repeat, no-repeat, repeat-x, and repeat-y work in every current browser and in old Internet Explorer. space and round need Chrome 30, Firefox 49, Safari 7, or Edge 12. This is a browser CSS property. Node.js, Deno, and Bun do not paint it.