W3C home > Mailing lists > Public > www-style@w3.org > January 2004

[css3-page] Comment on page counters

From: Werner Donné <werner.donne@re.be>
Date: Tue, 13 Jan 2004 16:47:59 +0100
Message-ID: <4004132F.6080407@re.be>
To: www-style@w3.org

Hi,

I think it would be interesting to specify that the counter "page" can be reset.
This is useful when named pages are used. The element for which the page property
applies could then also cause a page number reset. An example:

@page front
{
   @bottom-center
   {
     content: counter(page, lower-roman)
   }
}

@page main
{
   @bottom-center
   {
     content: counter(page, decimal)
   }
}

div.front, div.main
{
   counter-reset: page;
}

div.front
{
   page: front;
}

div.main
{
   page: main;
}

Regards,

Werner.
-- 
Werner Donné  --  Re BVBA
Engelbeekstraat 8
B-3300 Tienen
tel: (+32) 486 425803	e-mail: werner.donne@re.be
Received on Tuesday, 13 January 2004 10:50:05 GMT

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