Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Style borderImageWidth property

Style borderImageWidth property

Style Object Reference The Style object

Example

Specify the width of the image border:

document.getElementById("myDIV").style.borderImageWidth="20px 30px";

Try it »


Definition and Usage

The borderImageWidth property specifies the width of the image border.


Browser support

Internet Explorer Firefox Opera Google Chrome Safari

Opera does not support the borderImageWidth property.

Internet Explorer 10 and earlier versions do not support the borderImageWidth property.

Safari 5 and earlier versions do not support the borderImageWidth property.

See borderImage property as an alternative!


Syntax

Return the borderImageWidth property:

object

.style.borderImageWidth

Set the borderImageWidth property:

object

.style.borderImageWidth="

number

|

%

|auto|initial|inherit"

Attribute values

Value Description
length A length unit (px) specifying the size of the border-width
number The default value is 1. A multiple of the corresponding border width.
% A percentage relative to the size of the border image area: the horizontal offset refers to the width of the area and the vertical offset refers to the height of the area.
auto If this property is specified, the width is the intrinsic width or height of the corresponding image slice.
initial Sets this property to its default value. See initial.
inherit Inherits this property from its parent element. See inherit.

Technical Details

Default value: 1
Return Value: A string representing the element's border-image-width property.
CSS version CSS3

Related Articles

CSS Reference Manual:The border-image-width property


Style Object Reference The Style object