CSS border-image-repeat Property


The border-image-repeat CSS property specifies how the middle part of the border image are scaled or tiled so that it can match the size of the border.

The border-image-repeat property in CSS is used to scaling and tiling the border images. It can be used to match the middle part of the border-image to the size of the border. It can have either one or two values. One is for horizontal and one for the vertical axis. Only one value is given then it applies to all sides, but two values are given it is given one value for horizontal and another for vertical sides.

CSS Syntax

border-image-repeat: stretch|repeat|round|initial|inherit;

Note: This property specifies how the images for the sides and the middle part of the border image are scaled and tiled. So, you can specify two values here. If the second value is omitted, it is assumed to be the same as the first.

Example -