Style backgroundRepeat Property
Style backgroundRepeat Property
The backgroundRepeat property is used to either set or return how to repeat a background image.
Syntax:-
Its syntax is:- object.style.backgroundRepeat OR object.style.backgroundRepeat = repeat|repeat-x|repeat-y|no-repeat|initial|inherit
Return:-
Its return is:- string describing how a background image is repeated
Further Explanation:-
Value | Description |
---|---|
repeat | The background image is repeated both vertically and horizontally. |
repeat-x | The background image is only repeated horizontally. |
repeat-y | The background image is only repeated vertically. |
no-repeat | The background image is not repeated. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |