border-image-width
Sets the thickness of the border image. This can be different from the actual 'border-width', allowing you to scale the decorative image pieces independently of the box boundaries.
Quick example
.thick-frame {
border: 10px solid transparent;
border-image-source: url('frame.png');
border-image-slice: 30;
/* Makes the border image 20px wide regardless of border-width */
border-image-width: 20px;
} Quick facts
Initial value
1Inherited
No
Applies to
all elements (except table elements when collapse)
Animation type
byComputedValueType
Values
length-percentagenumberauto border-image-width Browser Support
Widely available Since 2017 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2017.
Safe to use without fallbacks.
16+
13+
6+
12+