The border-image-repeat CSS property defines how the middle part of a border image is handled to match the size of the border. It has a one-value syntax which describes the behavior for all sides, and a two-value syntax that sets a different value for the horizontal and vertical behavior.
Overview tablestretch
borderImageRepeat
border-image-repeat: inherit
border-image-repeat: repeat
border-image-repeat: round
border-image-repeat: space
border-image-repeat: stretch
A simple example showing multiple <div>s, identical in style except that they have different border-image-repeat properties applied to them.
<div class="pattern repeat">Repeat</div>
<div class="pattern stretch">Stretch</div>
<div class="pattern round">Round</div>
<div class="pattern space">Space</div>
.pattern {
border-image-source: url(/docs/w/images/d/d8/border-image.png);
border-image-slice: 30;
border-image-width: 6;
border-image-outset: 3;
}
.pattern.repeat{
border-image-repeat: repeat;
}
.pattern.stretch{
border-image-repeat: stretch;
}
.pattern.round{
border-image-repeat: round;
}
.pattern.space{
border-image-repeat: space;
}
[[File:border-image.png|border-image demo image]]
<code>border-image-repeat: stretch;</code>
[[File:bi-stretch.png|border-image stretch demo]]
<code>border-image-repeat: repeat;</code>
[[File:bi-repeat.png|border-image repeat demo]]
<code>border-image-repeat: round;</code>
[[File:bi-round.png|border-image round demo]]
/* Round is supported by Gecko-based browsers only, like Firefox */
<code>border-image-repeat: space;</code>
[[File:bi-space.png|border-image space demo]]
/* Space is not supported by any browser */
Usage
If one velue is specified, it is used for all four sides. If two values are specified, the first is used for the horizontal sides, and the second is used for vertical ones.
Related specifications
border-image-repeat
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