HTML and CSS Reference
In-Depth Information
Name
::before
Generates:
A pseudo-element containing generated content placed before the content in the element
Description:
This allows the author to insert generated content at the beginning of an element's content. By
default, the pseudo-element is inline, but that can be changed using the property display .
Examples:
a[href]:before {content: "[LINK] ";)
p:before {content: attr(class);}
a[rel|="met"]:after {content: " *";}
Search WWH ::




Custom Search