CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS border image Property

CSS border-image Property

 

 

The border-image property is used to specify an image to be used as the border around an element. It is a shorthand property for:-

  1. border-image-source
  2. border-image-slice
  3. border-image-width
  4. border-image-outset
  5. border-image-repeat

 

Syntax:-

 

Its syntax is:- border-image: source slice width outset repeat | initial | inherit;

 

Further Explanation:-

 

Value Description
border-image-source The path to the image to be used as a border
border-image-slice To slice the border-image
border-image-width The width of the border-image
border-image-outset The amount by which the border-image area extends beyond the border-box
border-image-repeat Whether the border image should be repeated, rounded, or stretched
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS