CSS border-image-width Property

❮ Previous Reference Next ❯

Example

#example1 {
  border: 10px solid transparent;
  padding: 10px;
  border-image-source: url("border.png");
  border-image-repeat: round;
  border-image-slice: 30;
  border-image-width: 10px;
}

#example2 {
  border: 10px solid transparent;
  padding: 10px;
  border-image-source: url("border.png");
  border-image-repeat: round;
  border-image-slice: 30;
  border-image-width: 20px;
}





Hello World!

Meaning

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

Default value:1
Inherited:No
Animatable:No
Version:CSS3
JavaScript syntax:
object.style.borderImageWidth="length|number|%|auto|initial|inherit|revert|revert-layer|unset";



Standard Syntax

border-image-width: length|number|%|auto|initial|inherit|revert|revert-layer|unset;



Browser Support

The numbers in the table specify the first browser version that fully supports the property.




Status







Property Values

The following table describes the values of this property:

Value Description
length Specifies the width of the border in absolute or relative units.
number Represents a multiple of the computed value of the element's border-width property, or the width of the border box.
%(percentage) Specifies the width of the border as a percentage of the element.
auto Specifies that the border image width is the intrinsic width, or height, of the corresponding image slice.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element animation-delay property.
revert Reverts the cascaded value of the property from its current value to the value the property
revert-layer Rollback styles to the ones specified in previous cascade layers.
unset Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not.



Default CSS Property Values

selectors {
  border-image-width: 1;
}
❮ Previous Reference Next ❯