Style borderImageWidth attribute

Definition and usage

borderImageWidth Attribute specifies the width of the image border.

See also:

CSS Reference Manual:border-image-width property

Example

Specify the width of the image border:

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

Try it yourself

Syntax

Return borderImageWidth property:

object.style.borderImageWidth

Set borderImageWidth property:

object.style.borderImageWidth = "number|%|auto|initial|inherit"

Attribute value

???
Value Description
lengthSpecifies the border width size in pixels.
number Default value 1. Represents a multiple of the corresponding border-width.
% Refer to the size of the border image area: the height affects the horizontal offset, and the width affects the vertical offset.
auto If specified, the width is the inherent 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 that represents the element's border-image-width property.
CSS version: CSS3

Browser support

Talene i tabellen angiver den første browserversion, der fuldt ud understøtter egenskaben.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Supporteret 11.0 Supporteret 6.0 15.0

Se venligst borderImage egenskab!