CSS Property:
border-image:

Here is the image used:

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