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 below:

border-image · WebPlatform Docs

border-image Summary

Shorthand property that defines an image to be displayed and its positioning, instead of a solid color, for ‘border’ property. It can be used to set border-image-source, border-image-slice, border-image-width, border-image-outset and border-image-repeat, or a subset of these.

Overview table
Initial value
based on individual properties
Applies to
All elements
Inherited
No
Media
visual
Computed value
based on individual properties
Animatable
No
CSS Object Model Property
borderImage
Percentages
N/A
Syntax Values
border-image-source border-image-slice border-image-width border-image-outset border-image-repeat
The border-image property can contain up to five components:
Examples

A simple example showing a <div>.

<div class="pattern">one</div>

View live example


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

.pattern {
    border: 30px solid transparent;
    border-image: url(/docs/w/images/d/d8/border-image.png) 30 repeat;
}

View live example

Notes

border-image-slice: fill was introduced in latest recommendation and breaks backwards compatibility. If you want border-image to fill an inner area of your block you have to use this property.

Compatibility with other properties

border-radius has no effect on border-image.

Related specifications
CSS Backgrounds and Borders Module Level 3
W3C Candidate Recommendation
See also Related articles Border Other articles

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