The border-image-width CSS property defines the offset to use for dividing the border image in nine parts, the top-left corner, central top edge, top-right-corner, central right edge, bottom-right corner, central bottom edge, bottom-left corner, and central right edge. They represent inward distance from the top, right, bottom, and left edges.
Overview tablenone
border-collapse
is set to collapse
.
borderImageWidth
border-image-width: <length>
border-image-width: <number>
border-image-width: <percentage>
border-image-width: auto
border-width
property to be used as the image slice size. The number must not be negative.
A simple example showing multiple <div>s, identical in style except that they have different border-image-width properties applied to them.
<div class="pattern one">one</div>
<div class="pattern two">two</div>
<div class="pattern three">three</div>
<div class="pattern four">four</div>
.pattern {
border-image-source: url(/docs/w/images/d/d8/border-image.png);
border-image-slice: 30;
border-image-repeat: repeat;
border-image-outset: 3;
}
.pattern.one{
border-image-width: 3;
}
.pattern.two{
border-image-width: 1.2em 1.8em;
}
.pattern.three{
border-image-width: 5% 15% 10%;
}
.pattern.four{
border-image-width: 5% 2em 10% auto;
}
Usage
* Up to four different widths can be specified, in the following order: top, right, bottom, left.
border-image-width
Mozilla Developer Network : Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4