I'm currently trying to get nested, ordered lists in HTML to do numbering in what I would call outline order, i.e. 1, 1.1, 1.2, 2, etc. Unfortunately, I seem to keep failing. According to
the CSS2 Spec on Nested Counters and Scope, I should be able to putol { counter-reset: item
(
Read more... )
Comments 9
1) on the second line, you have a ";" following "block"
2) on the last line, you have the additional ". " following the counters(item, ".") function
now, those differences may or may not have a bearing on the outcome, since the code tested clean... but browsers and HTML being what they are, maybe try making those two changes and giving it a go. ^__^
Reply
Reply
In any case, these sites should explain it :P
Browser support overview
Link specifically referencing pseudo-elements
Link specifically referencing generated content
It would be nice if browsers actually *implemented* said specification. In other words, just because it's in the spec, doesn't mean a browser will be able to implement it. Grr.
Reply
Reply
Reply
a link with support information up to Firefox 1.0
Reply
1This should be labeled as '1'
2Frabnotz
3Zorn
3.1This should be labeled as '3.1'
3.2Lorem ipsum dolor sit amet,
3.3consectetur adipisicing elit,
3.4sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
4Plothel-ZEEM
5Bartholomew
There's no space between the numbers and the text, but your spec didn't tell it to, either.
Reply
What I originally had looked a bit better but Stacey pointed out that it differed from the CSS2 spec. So, I changed it to be exactly what the spec had...
Thanks for the datapoint.
Reply
Leave a comment