CSS Property:
border-image-repeat:

Here is the image used:

Result:
Note: Internet Explorer 10, and earlier versions, do not support the border-image-repeat property.
CSS Code:
#myDIV {
border: 15px solid transparent;
padding: 15px;
border-image: url(border.png);
border-image-slice: 30;
border-image-repeat: stretch;
}
Click the property values above to see the result
W3Schools.com - Play it