Style borderImageWidth Property
- Previous Page
- Next Page
- Go to the Previous Level HTML DOM Style Object
Definition and Usage
borderImageWidth
Property specifies the width of the image border.
See also:
CSS Reference Manual:border-image-width property
Example
Specifies the width of the image border:
document.getElementById("myDIV").style.borderImageWidth = "20px 30px";
Syntax
Return borderImageWidth property:
object.style.borderImageWidth
Set borderImageWidth property:
object.style.borderImageWidth = "number|%|auto|initial|inherit"
Property Value
Value | Description |
---|---|
length | ???Specifies 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 also initial. |
inherit | Inherits this property from its parent element. See also inherit. |
Technical Details
Default value: | 1 |
---|---|
Return value: | string, indicating the border-image-width property. |
CSS Version: | CSS3 |
Browser Support
The numbers in the table indicate the first browser version to fully support this attribute.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Supported | 11.0 | Supported | 6.0 | 15.0 |
Please See borderImage Attribute!
- Previous Page
- Next Page
- Go to the Previous Level HTML DOM Style Object