Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS content definition

Browser support
IEFFOpSaf

Type:

Syntax

content: <text>

Description

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>

Output

Real text.

  • Comments

No comments added.