{"id":376323,"date":"2023-01-12T05:47:02","date_gmt":"2023-01-12T13:47:02","guid":{"rendered":"https:\/\/css-tricks.com\/?page_id=376323"},"modified":"2023-01-18T13:25:47","modified_gmt":"2023-01-18T21:25:47","slug":"border-image-width","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/b\/border-image-width\/","title":{"rendered":"border-image-width"},"content":{"rendered":"\n

The CSS border-image-width<\/code> property is used to determine the width of the border\u2019s image file, as provided by the CSS border-image-source<\/a><\/code> property.<\/p>\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-width: 40%;\n  border-image-repeat: repeat; \n}<\/code><\/pre>\n\n\n\n\n\n\n\n