Producing web pages
* HTML CSS DHTML XHTML A to Z of tags        Accessibility          Design

Generated content properties

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: ’"’ ’"’ "’" "’" ;}