CSS - border-image-repeat
border-image-repeat
border-image-repeat defines if the border image should be repeated, rounded or stretched.
border-image-repeat: stretch|repeat|round|initial|inherit;
Property Variable Name
border-image-repeat
Available Values for border-image-repeat
stretch|repeat|round|initial|inherit
Examples Using border-image-repeat values
Example using border-image-repeat stretch
Example using border-image-repeat stretch
Here is an example using border-image-repeat:stretch;
Code
<style>
/* Some Styles so we can see the element */
.rainbow {
background:linear-gradient(45deg, #dc3b3e, #3b99dc 50%, #3bdc90 75%, rgb(255 141 0) 100%);
}
.demo-box-1 {
background:#999;
margin-bottom:10px;
height:220px;
width:100%;
display: flex;
flex-wrap: wrap;
color:#FFF;
align-items: center;
justify-content: center;
border:10px solid #000;
border-image:url(https://css.kruxor.com/images/pexels-johannes-rapprich-4996652-1200.jpg) 30 round;
}
.demo-box-1 {
/* this is the test property */
border-image-repeat:stretch;
}
</style>
<h2>Example using border-image-repeat stretch</h2>
<p>Here is an example using <code>border-image-repeat:stretch;</code></p>
<div class='rainbow demo-box-1'>
</div>
Example using border-image-repeat repeat
Example using border-image-repeat repeat
Here is an example using border-image-repeat:repeat;
Code
<style>
/* Some Styles so we can see the element */
.rainbow {
background:linear-gradient(45deg, #dc3b3e, #3b99dc 50%, #3bdc90 75%, rgb(255 141 0) 100%);
}
.demo-box-2 {
background:#999;
margin-bottom:10px;
height:220px;
width:100%;
display: flex;
flex-wrap: wrap;
color:#FFF;
align-items: center;
justify-content: center;
border:10px solid #000;
border-image:url(https://css.kruxor.com/images/pexels-johannes-rapprich-4996652-1200.jpg) 30 round;
}
.demo-box-2 {
/* this is the test property */
border-image-repeat:repeat;
}
</style>
<h2>Example using border-image-repeat repeat</h2>
<p>Here is an example using <code>border-image-repeat:repeat;</code></p>
<div class='rainbow demo-box-2'>
</div>
Example using border-image-repeat round
Example using border-image-repeat round
Here is an example using border-image-repeat:round;
Code
<style>
/* Some Styles so we can see the element */
.rainbow {
background:linear-gradient(45deg, #dc3b3e, #3b99dc 50%, #3bdc90 75%, rgb(255 141 0) 100%);
}
.demo-box-3 {
background:#999;
margin-bottom:10px;
height:220px;
width:100%;
display: flex;
flex-wrap: wrap;
color:#FFF;
align-items: center;
justify-content: center;
border:10px solid #000;
border-image:url(https://css.kruxor.com/images/pexels-johannes-rapprich-4996652-1200.jpg) 30 round;
}
.demo-box-3 {
/* this is the test property */
border-image-repeat:round;
}
</style>
<h2>Example using border-image-repeat round</h2>
<p>Here is an example using <code>border-image-repeat:round;</code></p>
<div class='rainbow demo-box-3'>
</div>
Example using border-image-repeat initial
Example using border-image-repeat initial
Here is an example using border-image-repeat:initial;
Code
<style>
/* Some Styles so we can see the element */
.rainbow {
background:linear-gradient(45deg, #dc3b3e, #3b99dc 50%, #3bdc90 75%, rgb(255 141 0) 100%);
}
.demo-box-4 {
background:#999;
margin-bottom:10px;
height:220px;
width:100%;
display: flex;
flex-wrap: wrap;
color:#FFF;
align-items: center;
justify-content: center;
border:10px solid #000;
border-image:url(https://css.kruxor.com/images/pexels-johannes-rapprich-4996652-1200.jpg) 30 round;
}
.demo-box-4 {
/* this is the test property */
border-image-repeat:initial;
}
</style>
<h2>Example using border-image-repeat initial</h2>
<p>Here is an example using <code>border-image-repeat:initial;</code></p>
<div class='rainbow demo-box-4'>
</div>
Example using border-image-repeat inherit
Example using border-image-repeat inherit
Here is an example using border-image-repeat:inherit;
Code
<style>
/* Some Styles so we can see the element */
.rainbow {
background:linear-gradient(45deg, #dc3b3e, #3b99dc 50%, #3bdc90 75%, rgb(255 141 0) 100%);
}
.demo-box-5 {
background:#999;
margin-bottom:10px;
height:220px;
width:100%;
display: flex;
flex-wrap: wrap;
color:#FFF;
align-items: center;
justify-content: center;
border:10px solid #000;
border-image:url(https://css.kruxor.com/images/pexels-johannes-rapprich-4996652-1200.jpg) 30 round;
}
.demo-box-5 {
/* this is the test property */
border-image-repeat:inherit;
}
</style>
<h2>Example using border-image-repeat inherit</h2>
<p>Here is an example using <code>border-image-repeat:inherit;</code></p>
<div class='rainbow demo-box-5'>
</div>