background-repeat-x
Widely availableSince 201592% of usersExperimental
A non-standard (but widely supported) property that specifically controls whether a background image repeats horizontally. It is usually easier to use the standard 'background-repeat' property instead.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyClassicIt has worked everywhere since 2015.
See how modern your own CSS is.Check your CSS →
Quick example
body {
background-repeat-x: repeat;
/* explicitly forces horizontal repeat only (mostly for legacy compatibility) */
}background-repeat-x browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.Safe to use without fallbacks.
Usage92%of people can use this8% use a browser without it.
Browsers
5+
5+
79+Mobile
18+Android
4.2+iOS