CSS :before pseudo-element
Complete CSS Reference
Definition
The :before pseudo-element inserts some content before 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 an element (Does not work in IE)
This example demonstrates how to use the :before pseudo-element to insert an
image before an element.
Complete CSS Reference
Want To Be A Web Master?
If you want to be a Web Master, you will have to host your web site with an ISP (Internet Service Provider).
MaximumASP offers seven different configurations of dedicated servers to meet your Windows and .NET hosting needs.
Hosted on our multi-tiered Enterprise Class network, these servers provide the performance, security and reliability
you need to host your high end web sites and applications.
Visit MaximumASP
|