Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
#borderimg1 {
  border: 10px solid transparent;
  padding: 15px;
  border-image: url(border.png) round;
  border-image-slice: 10%;
}
#borderimg2 {
  border: 10px solid transparent;
  padding: 15px;
  border-image: url(border.png) round;
  border-image-slice: 20%;
}
#borderimg3 {
  border: 10px solid transparent;
  padding: 15px;
  border-image: url(border.png) round;
  border-image-slice: 30%;
}
</style>
</head>
<body>
<h1>The border-image-slice Property</h1>
<p id="borderimg1">border-image-slice: 10%;</p>
<p id="borderimg2">border-image-slice: 20%;</p>
<p id="borderimg3">border-image-slice: 30%;</p>
<p>Here is the image used:</p>
<img src="border.png">
<p><strong>Note:</strong> Internet Explorer 10, and earlier versions, do not support the border-image-slice property.</p>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.php?filename=trycss3_border-image-slice by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:35:29 GMT -->
</html>