Interactive online courses HTML Academy
2026-03-09 10:55 Diff

The border-image-repeat property specifies how the background of the frame side areas (the green areas in the figure) will be filled.

The property has four values: stretch, repeat, space, and round.

The default value is stretch. When this value is set, the background images are stretched to the full length of the side areas.

If the repeat value is set, background images will be repeated. However, they can be cropped.

You can set the fill mode separately for the horizontal and vertical sides of the frame.

For example:

/ * All borders of the frame are filled in stretch mode * / border-image-repeat: stretch; / * The horizontal borders are filled in repeat mode, and the vertical borders are filled in stretch mode */ border-image-repeat: repeat stretch;

Let’s take a look at what the difference is between these two options.