border-image-width

The border-image-width CSS property sets the width of an element's border image.

Initial value 1
Applies to all elements, except internal table elements when border-collapse is collapse. It also applies to ::first-letter.

Syntax

  
border-image-width: 2rem;
  

Values

The width of the border, specified as a or a . Percentages are relative to the width of the border image area for horizontal offsets and the height of the border image area for vertical offsets. Must not be negative.
The width of the border, specified as a multiple of the corresponding border-width. Must not be negative.
The width of the border is made equal to the intrinsic width or height (whichever is applicable) of the corresponding border-image-slice. If the image does not have the required intrinsic dimension, the corresponding border-width is used instead.

Browser support

border-image-widthchrome15edge12firefox13ie11opera15safari6

We use cookies to improve your experience. Learn more in our Privacy policy.

×