CSS Reference Property

border-image-source 1p4121

The border-image-source property specifies the border-style properties and as an additional background layer for the element. 2x5q2n

If the value is none or if the image cannot be displayed (or the property doesn’t apply), the border styles will be used; otherwise the element’s borders are invisible and the border image is drawn as described by the border-image-repeat properties.

For a detailed explanation on how these properties work with the border-image-source property, see the border-image shorthand property’s entry.

Official Syntax 3xs5l

  • Syntax:

    border-image-source: none | <image>
                           
  • Initial: none
  • Applies To: All elements, except internal table elements when border-collapse is collapse
  • Animatable: no

Values u704t

none
No border image is applied.
<image>
See the image entry for a list of possible values.

Notes 441w3q

Even though any url() functional notation.

Examples 2h2053

border-image-source: none; /* no border image, use the border styles defined by `border-style` */
border-image-source: url(path/to/some-image.png);
border-image-source: linear-gradient(to bottom, #333333, #eeeeee); /* a linear gradient is an <image> */
                

Live Demo 6b4m17

See the border-image entry for a live demo.

Browser 572e63

CSS3 Border images 6p5169

Method of using images for borders

W3C Candidate Recommendation

ed from the following versions:

Desktop ea5q

  • 51
  • 50
  • 11
  • 38
  • 9.1

Mobile / Tablet 6s2f12

  • 9.3
  • 4.4
  • No
  • 66
  • 60

* denotes prefix required.

  • ed:
  • Yes
  • No
  • Partially
  • Polyfill

Stats from caniuse.com

Written by

Last updated June 11, 2020 at 9:41 pm by Mary Lou

Do you have a suggestion, question or want to contribute? Submit an issue.