The CSS border-image-slice<\/code> tells the browser where to \u201cslice\u201d an image being used to create the pieces of an element\u2019s borders.<\/p>\n\n\n\n
.element {\n border-style: ridge;\n border-width: 3rem;\n border-image-source: url('path\/to\/image.jpg');\n border-image-slice: 30%;\n border-image-repeat: repeat; \n}<\/code><\/pre>\n\n\n\nThe border-image-slice<\/code> property is defined in the CSS Backgrounds and Borders Module Level 3 specification<\/a>.<\/p>\n\n\n\n\n\n\n\n