Slice the border image with CSS

The border-image-slice property is used to slice the border image with CSS. You can try to run the following code to implement the border-image-slice property:


Live Demo

         #borderimg1 {
            border: 15px solid transparent;
            padding: 15px;
            border-image-source: url(;
            border-image-repeat: round;
            border-image-slice: 40;
      <p id = "borderimg1">This is image border example.</p>