CSS border image outset is used to define how much border image can extend the block area.
Syntax
1 |
border-image-outset: specify outset for the image to cover the block area; |
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 content to show outset of border image.</p> </div> </body> </html> |
Output
This is the content to show outset of border image.
CSS border image outset values list
Sr. No. | value | Description |
---|---|---|
1 | length | Used to specify the border image area to extend beyond the box area. The value for this will be in px, cm em etc. |
2 | initial | Used to define as the property initial value. |
3 | inherit | Used to define the computed value of property on the elements parent. |
4 | unset | Used to define the property either acts as inherit or initial, depending on the property if it is inherited or not. |