Set the border image width with CSS

The border-image-width property is used to set the border image width with CSS.


You can try to run the following code to implement the border-image-width property −

Live Demo

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