background-repeat-x
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.
This is an experimental technology. The syntax and behavior are still subject to change.
Syntax
/* Usage Example */
body {
background-repeat-x: repeat;
/* explicitly forces horizontal repeat only (mostly for legacy compatibility) */
}
/* Global values */
background-repeat-x: inherit;
background-repeat-x: initial;
background-repeat-x: revert;
background-repeat-x: revert-layer;
background-repeat-x: unset;
background-repeat-x Browser support
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+