CSS :before pseudo-element
Complete CSS Reference
Example
Play a sound before each occurrence of an h1 element:
h1:before
{
content:url(beep.wav);
} |
Try it yourself »
|
Definition and Usage
The :before pseudo-element inserts content before an element.
Browser Support

The :before pseudo-element is supported in all major browsers.
Related Pages
CSS tutorial: CSS Pseudo elements
CSS reference: CSS :after pseudo-element
Complete CSS Reference
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|