Tryit Editor v1.8

Source Code:
<!DOCTYPE html> <html> <head> <style> div { border:10px solid transparent; width:40px; padding:5px 10px; -moz-border-image: url(button.png) 0 14 0 14 stretch; /* Old Firefox */ -webkit-border-image: url(button.png) 0 14 0 14 stretch; /* Safari */ -o-border-image: url(button.png) 0 14 0 14 stretch; /* Opera */ border-image: url(button.png) 0 14 0 14 stretch; } </style> </head> <body> <p><b>Note:</b> Internet Explorer does not support the border-image property.</p> <div>Search</div> <p>Here is the image used:</p> <img src="button.png"> </body> </html>
Result:
W3Schools.com - Try it yourself