Menu Home

before

osbo.com | CSS | Pseudo-Elements | before

The before CSS pseudo-element specifies a child immediately before the originating element.

Syntax

selector::before {
    property: value;
}

Examples

Internal

after

External

World Wide Web Consortium (W3C)