RommeDeSerieux wrote:
> ol { counter-reset: list 0; list-style-type: none }
> li { counter-increment: list }
> li:before { content: counters(list, ".") ". " }
Opera's implementation of the scope (counter-increment) predates the
current text in CSS 2.1:12.4 (and is wrong). I don't know of any
workaround.
IE 8 suffered somehow from similar issues in beta stage, but that
seems fixed now. No idea about Konqueror (which version ? 3.5.x or
4.x ?).
Note that in the example code, one should add 'counter-increment:
item' for the li:before.
Eric A. Meyer wrote
> Believe it or not:
>
> li:before { content: counters(list, ".") ". " }
>
> Note the dot I added to the second bit of quoted text. This
> worked for me (with nested lists as well as top-level list items) in
> several browsers. Not IE7 or earlier, of course. Didn't test in IE8.
That additional period you added just adds a period at the complete
end of the counter
The original shows
1 list item
2 list item
2.1 list item, nested
2.2 list item, nested
3 list item
yours makes it
1. list item
2. list item
2.1. list item, nested
2.2. list item, nested
3. list item
The first period (in list, ".") separates the digits internally. The
second quoted string separates the marker from the real content.
Philippe
---
Philippe Wittenbergh
http://l-c-n.com/
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/