Easy Tutorial
❮ Prop Legend Form Met Console Table ❯

Style borderImageSlice Property

Style Object

Example

Specifies the inward offsets of the image border:


Definition and Usage

The borderImageSlice property specifies the inward offsets of the image border.


Browser Support

Opera does not support the borderImageSlice property.

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

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

See the borderImage property as an alternative!


Syntax

Return the borderImageSlice property:

Set the borderImageSlice property:

Property Values

Value Description
number A number representing image pixels (if the image is a raster image) or vector coordinates (if the image is a vector image).
% A percentage relative to the image size: the horizontal offset refers to the image's width, the vertical offset refers to the image's height. The default value is 100%.
fill Preserves the middle part of the border image.
initial Sets this property to its default value. See initial
inherit Inherits this property from its parent element. See inherit

Technical Details

Default value: 100%
Return value: String, representing the border-image-slice property of the element.
--- ---
CSS version CSS3
--- ---

Related Articles

CSS Reference: border-image-slice Property


Style Object

❮ Prop Legend Form Met Console Table ❯