These properties control the content that you can add before and after a tag.
Property
|
Description
|
Values
|
Example
|
content
|
Specifies the generated content
|
string
url
counter
open-quote
close-quote
no-open-quote
no-close-quote
|
p.note:before {content: "Note: ";}
|
counter-increment
|
Controls automatic numbering
|
|
{counter-increment: chapter ;}
|
counter-reset
|
Reset the auto numbering for a counter
|
|
|
before
and
after
|
Puts generated content after or before the content
of a tag
|
n/a
|
h1.before {content: url(head.gif)}
|
marker-offset
|
Specifies the horizontal offset
|
|
{marker-offset: 3em;}
|
quotes
|
Sets the quotation marks
|
|
q:lang(en) {quotes: ’"’ ’"’ "’" "’" ;}
|
|
|
More information
Quick CSS reference sheets
Font properties
Text properties
Color property
Background properties
Box properties
Positioning and display properties
List properties
Generated content properties
Dynamic outline properties
Table properties
Pseudo class and element properties
Printing properties
Media type properties
Aural properties
|