background-repeat
The background-repeat property specifies whether and how a background image repeats.
Formal Syntax
<repeat-style>#
JavaScript Access
// Access via element.style
element.style.backgroundRepeat = 'repeat';
Browser Support
| Feature | Chrome | Firefox | Safari | Edge |
|---|---|---|---|---|
| background-repeat | 1 | 1 | 1 | 12 |
| 2-value | 3 | 13 | 5 | 12 |
| multiple_backgrounds | 1 | 3.6 | 1.3 | 12 |
| no-repeat | 1 | 1 | 1 | 12 |
| repeat | 1 | 1 | 1 | 12 |
| repeat-x | 1 | 1 | 1 | 12 |
| repeat-y | 1 | 1 | 1 | 12 |
| round | 30 | 49 | 8 | 12 |
| space | 30 | 49 | 8 | 12 |
Related Properties
- background
- background-attachment
- background-blend-mode
- background-clip
- background-color
- background-image
- background-origin
- background-position
- background-position-x
- background-position-y
- background-size
- background-repeat-x ๐งช
- background-repeat-y ๐งช
- background-position-block ๐ง
- background-position-inline ๐ง
- background-repeat-block ๐ง
- background-repeat-inline ๐ง
- background-tbd ๐ง