The border-image property allows you to specify an image to be used as the border around an element, instead of the standard solid, dashed, or dotted border styles.
The property takes an image and "slices" it into 9 sections (four corners, four edges, and a middle). You then specify how those slices are used to fill the layout.
.box {
border: 15px solid transparent; /* Required fallback */
border-image: url('border.png') 30 stretch;
}
.box {
border: 15px solid transparent;
border-image: url('border.png') 30 round;
}
border with a width and color BEFORE border-image as a fallback for older browsers or if the image fails to load.