Being annoyed by CSS2 and HTML4

Aug 25, 2005 01:50

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... )

html/css, queries

Leave a comment

Comments 9

m0usegrrl August 25 2005, 10:14:56 UTC
there are a couple of differences between your code and that on the CSS2 spec site:

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

Re: a few changes wolfieboy August 25 2005, 10:38:27 UTC
Thanks! That's a good catch, even if it doesn't change anything. I was fiddling with it some after it didn't work but I've reverted it. It doesn't seem that hard.

Reply


Re: a few changes fiddle_dragon August 25 2005, 13:54:11 UTC
Technically, the ";" should be there at the end of every line within each element type specification.

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

Re: a few changes wolfieboy August 25 2005, 17:33:32 UTC
Yes, it would be nice if they could. It might be nice also if these browser support pages could use current browsers. I know that Navigator 7 still uses the gecko engine but how many folks have actually used it?

Reply

Re: a few changes fiddle_dragon August 25 2005, 17:34:50 UTC
*nod* I was noticing that too

Reply

Re: a few changes fiddle_dragon August 25 2005, 17:43:20 UTC

zanfur August 25 2005, 17:19:16 UTC
Opera does it just fine, if you're curious. Here's what I see, using opera:

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

Re: Opera wolfieboy August 25 2005, 17:43:58 UTC
I read that Opera could do it but that doesn't matter overly much. The people reading it use either ie or firefox...

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

Up