The border-image-source
property sets an image url.
If the value is "none", or if the image cannot be used, the border styles will be used.
border-image-source: none|image;
border-image-source |
Yes | 11.0 | Yes | Yes | Yes |
<!DOCTYPE html>
<html>
<head>
<style>
div {<!-- ww w. ja va2 s. com-->
background-color: lightgrey;
border: 30px solid transparent;
border-image: url('http://java2s.com/style/demo/border.png');
border-image-slice: 30;
}
</style>
</head>
<body>
<div>
This DIV uses an image as a border.
</div>
<p>Here is the image used:</p>
<img src="http://java2s.com/style/demo/border.png">
</body>
</html>