CSS :before pseudo-element
Complete CSS Reference
Definition
The :before pseudo-element inserts some content before the content of an element.
Examples
The style below will play a sound before each occurrence of an <h1> element:
h1:before
{
content: url(beep.wav)
} |
Try-It-Yourself Demos
Use :before to
insert some content before the content of an element (Does not work in IE)
This example demonstrates how to use the :before pseudo-element to insert an
image before the content of an element.
Complete CSS Reference
|