[thelist] Any way to get valid number definitions list?

Paul Cowan evolt at funkwit.com
Tue Jul 16 21:28:00 CDT 2002


Tim Luoma wrote:
> Is there a way to combine this with a <ol> <li> list so that the
> definition terms are numbered?
>
> I'm guessing 'no' but figured I'd ask

Um. Sort of. The theoretical CSS way, I think, is:

    dt {display: list-item; list-style-type: decimal;}

But in mozilla, each item is numbered "0" (unhelpful); in IE6,
the first is numbered "1" and the second is numbered "3" (vaguely
amusing).

The IE way sort of makes sense, because the second DT *is* actually
the third item in the list, because there's a DD in the middle. But
it's not very useful, is it?

In theory, you could use content: and counter-increment: to do it, but...
umm... good luck. Browser support may (will) vary, if it actually exists
at all.

Paul





More information about the thelist mailing list