W3C home > Mailing lists > Public > www-style@w3.org > May 1997

Re: content property

From: David Perrell <davidp@earthlink.net>
Date: Wed, 7 May 1997 10:37:28 -0700
Message-Id: <199705071738.KAA29811@italy.it.earthlink.net>
To: "Paul Prescod" <papresco@calum.csclub.uwaterloo.ca>
Cc: <www-style@w3.org>
Paul Prescod wrote:
> <P>This is a paragraph.
> <P>this is another paragraph.
> <FIGURE>This is figure 1.</FIGURE>
> <SECTION><TITLE>This is section 1</TITLE
> <FIGURE>This is figure 2</FIGURE>
> </SECTION>
> <SECTION><TITLE>This is section 2</TITLE>
> <FIGURE>This is figure 3</FIGURE>
> </SECTION>
> 
> Now how do I set up the stylesheet to generate numbers that
correspond
> to the ones in the text?

Prefixed, suffixed, or inserted? Prefixed w/period and space:

...
BODY          { counter-type: decimal;
                counter-initial: 1 }
FIGURE:before { content: BODY.counter ". "}           
SECTION       { counter-type: decimal;
                counter-initial: 1 }
TITLE:before  { content: SECTION.counter ". "}
...

David Perrell
Received on Wednesday, 7 May 1997 13:38:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:50 GMT