W3C home > Mailing lists > Public > www-style@w3.org > November 2005

Re: Réf. : Re: Printing a Book with CSS

From: Bert Bos <bert@w3.org>
Date: Wed, 30 Nov 2005 17:39:26 -0500
Message-ID: <438E2A1E.1020402@w3.org>
To: www-style@w3.org

leslie.brown@evidian.com wrote:
>>Lachlan Hunt wrote:
> 
> 
>>I looked for documentation of the leader() function in Prince's
>>documentation, but I couldn't find it mentioned anywhere.  Is there any
>>documentation for it?
> 
> 
> And what is the best way to treat different page number lengths?
>     Introduction.................1
>     HTML (very long chapter)....15
>     CSS........................123
> 
> seems most logical but there's probably also a case for
>     Introduction...............  1
>     HTML (very long chapter)... 15
>     CSS........................123

This looks more like a table. I would do this either with

     li {display: table-row}
     li span.title {display: table-cell}
     li span.title:after {content: leader(".")}
     li span.pageno {display: table-cell}

or I would simply insert a space, or better yet, a figure space:

     ... <span class=pageno>&#x2007;&#x2007;1</span>
     ... <span class=pageno>&#x2007;15</span>
     ... <span class=pageno>123</span>



Bert
-- 
   Bert Bos                                ( W 3 C ) http://www.w3.org/
   http://www.w3.org/people/bos                               W3C/ERCIM
   bert@w3.org                             2004 Rt des Lucioles / BP 93
   +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
Received on Wednesday, 30 November 2005 22:39:46 GMT

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