{"id":375434,"date":"2022-12-06T07:31:59","date_gmt":"2022-12-06T15:31:59","guid":{"rendered":"https:\/\/css-tricks.com\/?page_id=375434"},"modified":"2022-12-20T08:00:11","modified_gmt":"2022-12-20T16:00:11","slug":"border-image-repeat","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/b\/border-image-repeat\/","title":{"rendered":"border-image-repeat"},"content":{"rendered":"\n
The CSS border-image-repeat<\/code> property controls how a border image is repeated to fill the outer edges of an element. It can also control the center of an element\u2019s background when
border-image-slice<\/code> is set to
fill<\/code>.<\/p>\n\n\n\n\n\n\n\n
.container {\n border-style: ridge;\n border-width: 3rem;\n border-image-source: url('path\/to\/image.jpg');\n border-image-slice: 70; \n border-image-repeat: repeat;\n}<\/code><\/pre>\n\n\n\n