border-image
The border-image CSS property allows drawing an image on the borders of elements. This makes drawing complex looking widgets much simpler than it has been and removes the need for nine boxes in some cases.
The border-image is used instead of the border styles given by the border-style properties. It is important to note that if the computed value of border-image-source, which can be set either by border-image-source or the shorthand border-image, is none, or if the image cannot be displayed, the border styles will be used.
Example
<!DOCTYPE HTML> <html> <head> <title>CSS Tutorials</title> <style> div { border: 30px solid transparent; /* Old firefox */ -moz-border-image: url("Untitled-1.jpg") 30 30 repeat; /* Safari */ -webkit-border-image: url("Untitled-1.jpg") 30 30 repeat; /* Opera */ -o-border-image: url("Untitled-1.jpg") 30 30 repeat; border-image: url("Untitled-1.jpg") 30 30 repeat; } </style> </head> <body> <div> Border Images Demonstration </div> </body> </html>