css.properties

background-repeat-x

The background-repeat-x property specifies whether a background image repeats horizontally.

Experimental โ€” This feature is experimental and may change

Formal Syntax

background-repeat-x = <repetition># <repetition> = repeat | space | round | no-repeat

See specification

JavaScript Access

// Access via element.style element.style.backgroundRepeatX = "repeat";

Logical Property Group

This property belongs to the background-repeat logical property group, which includes:

Browser Support

experimental, standard | Spec

FeatureChromeFirefoxSafariEdge
background-repeat-x5โ€”579

Related Properties