CSS border image source is used to define the location of the image source to display as a border.
Syntax
1 |
border-image-source: specify image location here. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<style> .div-border{ border-image-source: url(../../images/myborder.png); border-image-slice: 14; border-image-width: 0.5em 0.87em; border-image-outset: 0em 0.9em 1.2em 0.9em; border-image-repeat: round; border-width:12px; border-style:solid; border-color:#000; } </style> <div class="div-border"> <p>This is the HTML paragraph inside div having a border image.</p> </div> </body> </html> |
Output
This is the HTML paragraph inside div having a border image.
CSS border image source values list
Sr. No. | value | Description |
---|---|---|
1 | image | Used to specify the location of the image. The value for this will be location url of the image. |
2 | none | Used to specify that there is no image will be using for this. The value for this is none. |
3 | initial | Used to define as the property initial value. |
4 | inherit | Used to define the computed value of property on the elements parent. |
5 | unset | Used to define the property either acts as inherit or initial, depending on the property if it is inherited or not. |