border-image-repeat
Defines how the border image is filled along the edges. 'Stretch' pulls the image thin, while 'repeat' or 'round' tiles it. 'Round' is often best because it scales tiles slightly to avoid cutting them off.
Quick example
.tiled-border {
border: 15px solid;
border-image-source: url('dots.png');
border-image-slice: 10;
/* Tiles the dots smoothly without cutting any in half */
border-image-repeat: round;
} Quick facts
Initial value
stretchInherited
No
Applies to
all elements (except table elements when collapse)
Animation type
discrete
Values
stretchrepeatroundspace border-image-repeat Browser Support
Widely available Since 2017 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2017.
Safe to use without fallbacks.
15+
15+
6+
12+