monks/border_image

The border-image CSS property draws an image around a given element. It replaces the element’s regular border.

You should specify a separate {{cssxref(“border-style”)}} in case the border image fails to load. Although the specification doesn’t strictly require it, some browsers don’t render the border image if {{cssxref(“border-style”)}} is none or {{cssxref(“border-width”)}} is 0.

Values

pub const auto_: #(String, String)

auto value of border-image

pub const bottom: #(String, String)

bottom value of border-image

pub const center: #(String, String)

center value of border-image

pub const circle: #(String, String)

circle value of border-image

pub const closest_corner: #(String, String)

closest-corner value of border-image

pub const closest_side: #(String, String)

closest-side value of border-image

pub const contain: #(String, String)

contain value of border-image

pub const cover: #(String, String)

cover value of border-image

pub const ellipse: #(String, String)

ellipse value of border-image

pub const farthest_corner: #(String, String)

farthest-corner value of border-image

pub const farthest_side: #(String, String)

farthest-side value of border-image

pub const fill: #(String, String)

fill value of border-image

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const left: #(String, String)

left value of border-image

pub fn length(value: monks_of_style.Length) -> #(String, String)

length value of border-image

pub const none: #(String, String)

none value of border-image

pub fn raw(value: String) -> #(String, String)

Enter a raw string value for border-image

pub const repeat: #(String, String)

repeat value of border-image

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const right: #(String, String)

right value of border-image

pub const round: #(String, String)

round value of border-image

pub const space: #(String, String)

space value of border-image

pub const stretch: #(String, String)

stretch value of border-image

pub const top: #(String, String)

top value of border-image

pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for border-image. It will be wrapped in var() and have -- prepended.

Search Document