{"id":374647,"date":"2022-11-04T06:05:06","date_gmt":"2022-11-04T13:05:06","guid":{"rendered":"https:\/\/css-tricks.com\/?page_id=374647"},"modified":"2022-11-17T07:33:45","modified_gmt":"2022-11-17T15:33:45","slug":"border-image-source","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/b\/border-image-source\/","title":{"rendered":"border-image-source"},"content":{"rendered":"\n

The border-image-source<\/code> CSS property creates borders around elements using an image file or CSS gradient as the source.<\/p>\n\n\n\n

.container {\n  border-width: 2rem;\n  border-style: dotted;\n  border-color: grey;\n  border-image-source: url('path\/to\/image.jpg');\n  border-image-repeat: repeat;\n  border-image-slice: 100;\n}<\/code><\/pre>\n\n\n\n\n\n\n\n