HTML CSS examples for CSS Property:border-image-outset
The border-image-outset CSS property sets how the border image area would extend beyond the border box.
The following table summarizes the border-image-outset Property.
Item | Value |
---|---|
Default value: | 0 |
Applies to: | All elements, except internal table elements when border-collapse is collapse. It also applies to ::first-letter. |
Inherited: | No |
Animatable: | No. |
The syntax of the property is as follows:
border-image-outset: length | number | initial | inherit
The following table describes the values of this property.
Value | Description |
---|---|
length | Set the distance in units that the border image extends beyond the border box. Negative values are not allowed. |
number | computed value of border-width, or the width of the border box. Negative values are not allowed. |
initial | Sets this property to its default value. |
inherit | take the value of its parent element border-image-outset property. |
The example below shows the border-image-outset property.
<!DOCTYPE html> <html lang="en"> <head> <title>Example of CSS3 border-image-outset Property</title> <style type="text/css"> .box {<!--from ww w .j av a2s .c om--> width: 300px; height: 150px; margin: 50px; border: 15px solid transparent; border-image-source: url("https://www.java2s.com/style/demo/Opera.png"); border-image-slice: 30; border-image-outset: 15px; } </style> </head> <body> <div class="box"></div> </body> </html>