O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

border-image-repeat

Values:

[ stretch | repeat | round ]{1,2}

Initial value:

stretch

Applies to:

All elements except table elements where border-collapse is collapse

Inherited:

No

Computed value:

Same as declared value

Description:

Defines the repetition pattern (or lack thereof) of the sides of a border image. stretch causes a single copy of the image to be stretched to fit the border segment (top, right, bottom, or left). repeat “tiles” the image in a manner familiar from background images, though border images are only ever tiled along one axis. round “tiles” the border image as many times as it will fit without clipping, then (if necessary) scales the entire set of tiled images to exactly fit the border segment.

Examples:

div.starry {border-image-repeat: repeat;}
aside {border-image-repeat: stretch round;}

Note:

As of early 2011, browsers did not support border-image-repeat. It is included because border-image (which encompasses border-image-repeat) was supported and browsers were expected to add border-image-repeat support by the end of 2011.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required