background-repeat CSS property specifies whether the
background-image is repeated or tiled after it has been sized and positioned, and how. It is often more convenient to use the shorthand background property.
The following table summarizes the usages context and the version history of this property.
|Applies to:||All elements|
|Animatable:||No. See animatable properties.|
|Version:||CSS 1, 2, 3|
The syntax of the property is given with:
The example below shows the
background-repeat property in action.
ExampleTry this code »
The following table describes the values of this property.
||The default value. The background image will be repeated both vertically and horizontally.|
||The background image will be repeated horizontally only.|
||The background image will be repeated vertically only.|
||The background image will not be repeated.|
||Sets this property to its default value.|
||If specified, the associated element takes the computed value of its parent element
background-repeat property is supported in all major modern browsers.