The border-image-repeat
CSS property defines whether to repeat, round or stretch
the border image so that it can match the size of the border.
The one-value syntax describes the behavior of all the sides. The two-value syntax sets the horizontal and vertical sides.
border-image-repeat: stretch|repeat|round|initial|inherit;
border-image-repeat |
Yes | 11.0 | Yes | Yes | Yes |
<!DOCTYPE html>
<html>
<head>
<style>
div {<!-- w w w .j av a 2s . co m-->
background-color: lightgrey;
border: 30px solid transparent;
border-image: url('http://java2s.com/style/demo/border.png');
border-image-slice: 10;
border-image-repeat: repeat;
}
</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>