Background repeat
The background-repeat property controls how a background image is repeated (tiled) within an element.
By default, background images repeat both horizontally and vertically to fill the entire background area. This property lets you customize that behavior.
The
background-repeatproperty works best when combined withbackground-sizeandbackground-positionfor precise control over background images.spaceandroundare newer values and may have limited support in very old browsers.If the background image is smaller than the element,
repeatfills the space by tiling the image.With
no-repeat, if the image is smaller than the container, empty space remains visible.
This is a Conditional Value field. Such fields allow you to specify values directly OR use a Formula to specify a value. Conditional values are useful for specifying different values for changing situations, such as varying device types or screen sizes.
Possible Values
Repeat
N/A
Default. The background image repeats both horizontally and vertically to fill the element.
Repeat-X
N/A
The background image repeats only horizontally (along the X-axis).
Repeat-Y
N/A
The background image repeats only vertically (along the Y-axis).
No Repeat
N/A
The background image is not repeated; it appears only once.
Space
N/A
The background image repeats as much as possible without clipping, and extra space is distributed between the images.
Round
N/A
The background image repeats and scales (stretches or shrinks) to fill the space without clipping.
Examples
Default Repeat:


Horizontal Repeat:


Vertical Repeat:


No Repeat:


Space Repeat:


Round Repeat:


Last updated