Re: [CSS21] Possible counters() limitation?

On Sat, 09 Sep 2006 22:34:50 +0200, Bert Bos <bert@w3.org> wrote:
> The solution with counter() is simple, though:
>
>     body {counter-reset: h1}
>
>     section {counter-increment: h1; counter-reset: h2}
>     section h:before {content: counter(h1) ".\2007  "}
>
>     section section {counter-increment: h2}
>     section section h:before {content: counter(h1) "." counter(h2) " "}
>
> Unless there is a requirement that you didn't mention...

This wouldn't work for the attached document, for one. As in, it doesn't  
work for an arbitrary depth.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Sunday, 10 September 2006 08:21:05 UTC