border-image-repeat
Widely availableSince 201697% of users
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.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyClassicIt has worked everywhere since March 2016.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
stretch- Inherited
- No
- Applies to
- all elements (except table elements when collapse)
- Animation type
- discrete
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;
}Values
stretchrepeatroundspaceborder-image-repeat browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2016.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
15+
15+
6+
12+Mobile
18+Android
15+Android
9.3+iOS