CSS border-image-source (Define Source of Border Image)

The CSS border-image-source property is used to specify the source or the path of the image, used to create the border around an element. For example:

HTML with CSS Code
<!DOCTYPE html>
      p {border: 15px solid transparent; padding: 10px;
         border-image-source: url(images/border-image-demo.png);
         border-image-slice: 12;}

   <p>This is a para.</p>

This is a para.

In above program, the image used is:

border image demo

CSS border-image-source Syntax

The syntax of border-image-source property in CSS, is:

border-image-source: x;

The value of x should be any of the following:

CSS Online Test

« Previous Tutorial Next Tutorial »

© Copyright 2021. All Rights Reserved.