--- title: border-image-source slug: Web/CSS/border-image-source translation_of: Web/CSS/border-image-source ---
The border-image-source
CSS property defines the {{cssxref("<image>")}} to use instead of the style of the border. If this property is set to none
, the style defined by {{cssxref("border-style")}} is used instead.
url()
functional notation.{{cssinfo}}
/* no border-image, use the specified border-style */ border-image-source: none; /* the image.jpg is used as image */ border-image-source: url(image.jpg); /* a gradient is used as image */ border-image-source: linear-gradient(to top, red, yellow); /* Global values */ border-image-source: inherit; border-image-source: initial; border-image-source: unset;
none
<image>
See {{cssxref("border-image")}} for examples of what the various source values will do.
Спецификация | Статус | Комментарий |
---|---|---|
{{SpecName('CSS3 Backgrounds', '#border-image-source', 'border-image-source')}} | {{Spec2('CSS3 Backgrounds')}} | Initial definition |
{{Compat("css.properties.border-image-source")}}