CSS Property:
border-image:

Here is the image used:

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