CSS Property:
border-image-slice:

Note:Internet Explorer 10, Opera, and Safari 5 do not support the border-image-slice property.

Result:

This is a DIV element that uses an image as a border.

CSS Code:
div#main {
background-color:lightgrey;
border:30px solid transparent;
border-image: url('border.png');
border-image-slice: 30;
border-image-width: 1 1 1 1;
border-image-outset: 0;
border-image-repeat: stretch;
}
Click the property values above to see the result
W3Schools.com - Play it