Inserts content at the beginning or the end of an element with the use of the pseudo-elements :before and :after.
See Also
:before and :after
Example
[Try this example yourself]<style type="text/css">
#beforetext:before
{
content:"Text before the real text: ";
}
</style>
<p id="beforetext">
Real text.
</p>
Comments