monks/content

The content CSS property replaces content with a generated value. It can be used to define what is rendered inside an element or pseudo-element. For elements, the content property specifies whether the element renders normally (normal or none) or is replaced with an image (and associated “alt” text). For pseudo-elements and margin boxes, content defines the content as images, text, both, or none, which determines whether the element renders at all.

Objects inserted using the content property are anonymous {{ glossary(“replaced elements”)}}.

Values

pub const bottom: #(String, String)

bottom value of content

pub const center: #(String, String)

center value of content

pub const circle: #(String, String)

circle value of content

pub const close_quote: #(String, String)

close-quote value of content

pub const closest_corner: #(String, String)

closest-corner value of content

pub const closest_side: #(String, String)

closest-side value of content

pub const contain: #(String, String)

contain value of content

pub const contents: #(String, String)

contents value of content

pub const cover: #(String, String)

cover value of content

pub const ellipse: #(String, String)

ellipse value of content

pub const farthest_corner: #(String, String)

farthest-corner value of content

pub const farthest_side: #(String, String)

farthest-side value of content

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

left value of content

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

length value of content

pub const no_close_quote: #(String, String)

no-close-quote value of content

pub const no_open_quote: #(String, String)
  - : Introduces no content, but increments (decrements) the level of nesting for quotes.
pub const none: #(String, String)
  • : When applied to a pseudo-element, the pseudo-element is not generated. When applied to an element, the value has no effect.
pub const normal: #(String, String)
  • : For the {{cssxref(“::before”)}} and {{cssxref(“::after”)}} pseudo-elements, this value computes to none . For other pseudo-elements such as {{cssxref(“::marker”)}}, {{cssxref(“::placeholder”)}}, or {{cssxref(“::file-selector-button”)}}, it produces the element’s initial (or normal) content. For regular elements or page margin boxes, it computes to the element’s descendants. This is the default value.
pub const open_quote: #(String, String)
  - : These values are replaced by the appropriate string from the {{cssxref("quotes")}} property.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for content

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

right value of content

pub const top: #(String, String)

top value of content

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

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

Search Document