Re: [css3-gcpm] Leaders

On 16 Jun 2006, at 13:41, Håkon Wium Lie wrote:

> But, consider this example:
>
>   ul.toc a::after {
>     font-size: 10pt;
>     content: leader('. . . ') target-counter(attr(href), page);
>   }
>
> By setting the font size to get leaders right, you also set the size
> on page numbers. Typically, you want the font size of the page numbers
> to match that of the text.
>

You can get around this like so:

ul.toc a::after {
     font-size:10pt; content:leader('. . . ');
}

ul.toc a::after(2) {
     content:target-counter(attr(href), page);
}

While we're on leaders, what happens here?

<div style="float:left">
   Text<span style="content:leader('. ')" />Text
</div>

As a floats width is shrink-to-fit, how wide is the leader? As narrow  
as possible seems to be the correct answer.


Cheers... Mike
--
-----------------------------------------------------
Mike Bremford - CTO             mike@big.faceless.org
Big Faceless Organization     http://big.faceless.org

Received on Friday, 16 June 2006 13:12:55 UTC