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
Whether you're new to XML or already an advanced user, the user-friendly views
and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to
meet your XML and Web services development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a fully functional free 30-day trial today!
|