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 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 const revert_layer: #(String, String)