A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/css/properties/border-image-slice below:

border-image-slice · WebPlatform Docs

border-image-slice Summary

Divides the image specified by border-image-source in nine regions: the four corners, the four edges and the middle. It does this by specifying 4 inward offsets.

Overview table
Initial value
100%
Applies to
all elements, except internal table elements when border-collapse is set to collapse.
Inherited
No
Media
visual
Computed value
as specified
Animatable
No
CSS Object Model Property
borderImageSlice
Percentages
refer to size of the border image
Syntax Values
<number>
Represents pixels for raster images and coordinates for vector images.
<percentage>
Percentages values are relative to the height or width of the image, whichever is adequate.
fill
Is a keyword whose presence forces the use of the middle image slice to be displayed over the background image, its size and height are resized like those of the top and left image slices, respectively.
inherit
Is a keyword indicating that all four values are inherited from their parent’s element calculated value.
Examples

A simple example showing multiple <div>s, identical in style except that they have different border-image-slice properties applied to them.

<div class="pattern one">one</div>
<div class="pattern two">two</div>
<div class="pattern three">three</div>
<div class="pattern four">four</div>

View live example




div {
    height: 100px;
    width: 100px;
    margin: 25px;
    text-align: center;
    line-height: 100px;
    font-family: sans-serif;
}


.pattern {
    border-image-source: url(/docs/w/images/d/d8/border-image.png);
    border-image-width: 6;
    border-image-outset: 3;
    border-image-repeat: repeat;

}


.pattern.one{
    border-image-slice: 30;
}


.pattern.two{
    border-image-slice: 30 20;
}


.pattern.three{
    border-image-slice: 20 15 30;
}


.pattern.four{
    border-image-slice: 25 20 30 15;
}

View live example

Usage
 * Up to four different values can be specified, in the following order: top, right, bottom, left.
Related specifications
CSS Level 3 - Backgrounds and Borders Module
W3C Candidate Recommendation
See also Related articles Border Other articles Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4