CSS border-image-repeat Property
Example
#example1 {
border-image-source: url("border.png");
border-image-repeat: stretch;
}
#example2 {
border-image-source: url("border.png");
border-image-repeat: repeat;
}
#example3 {
border-image-source: url("border.png");
border-image-repeat: round;
}
#example4 {
border-image-source: url("border.png");
border-image-repeat: space;
}
Hello World!
Meaning
The border-image-repeat CSS property defines how the edge regions of a source image are adjusted to fit the dimensions of an element's border image.
Default value: | stretch |
Inherited: | No |
Animatable: | No |
Version: | CSS3 |
JavaScript syntax: |
|
Standard Syntax
border-image-repeat: stretch|repeat|round|space|initial|inherit|revert|revert-layer|unset;
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
Status
Property Values
The following table describes the values of this property:
Value | Description |
---|---|
stretch | This is default value. The image is stretched to fill the area between the edges of the border. |
repeat | The image is tiled (repeated) until it fills the area between the edges of the border. |
round | The image is tiled (repeated) until it fills the area between the edges of the border. If the area cannot be filled with a whole number of tiles, the image is rescaled so that it does. |
space | The image is tiled (repeated) until it fills the area between the edges of the border. If the area cannot be filled with a whole number of tiles, the extra space is distributed around the tiles. |
initial | Sets this property to its default value. |
inherit | If specified, the associated element takes the computed value of its parent element animation-delay property. |
revert | Reverts the cascaded value of the property from its current value to the value the property |
revert-layer | Rollback styles to the ones specified in previous cascade layers. |
unset | Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not. |
Default CSS Property Values
selectors {
border-image-repeat: stretch;
}