What is CSS border-image-source property?

The border-image-source property is used to define the source of the image that we want to use as a border.

It is a shorthand property of the following:

  • border-image-source

  • border-image-slice

  • border-image-width

  • border-image-outset

  • border-image-repeat

Syntax

border-image-source: none|image|initial|inherit;

Property values

  • none: It is used to specify that we don’t want to use any image.

  • image: It is used to specify the path of the image that is used to be displayed as a border.

  • initial: It is used to set the property to its default value.

  • inherit: It is used to inherit the value from its parent.

Code

Free Resources