CSS Pseudo-element ::before
Creates
A pseudo-element for additional content that is placed before the actual content of the element.
Description
Allows us to add content to the beginning of an element. The pseudo-element is an inline-element by default, but this can be changed with display:;
.
Examples
Compatibility
Chrome | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|
2+ | 3.5+ | 8+ | 6+ | 1.3+ |