Here, the middle sections of the image are stretched to create the border:
border-image: url(border.png) 30 stretch;
Here is the original image:
Note: Internet Explorer 10, and earlier versions, do not support the border-image property.