XHTML/CSS query
May. 13th, 2004 10:02 amOkay, this may be a dumb question, but is there a way in XHTML/CSS to create a nested ordered list like this:
etc.?
I have looked in all the usual places and they all seem to say "no, can't be done", but you guys are clever...
Update: I really do mean with the numbering as above (1, 1.1, 1.1.1 etc.) not just nested lists in general -- sorry for not being more clear. And it looks like the answer's "no" anyway. :-/
1. a list with some stuff in:
1.1 stuff here
1.2 more stuff
1.3 guess what, a nested list:
1.3.1 stoat
1.3.2 weasel
1.3.3 badger
1.4 no list here
2. another list, or whatever
etc.?
I have looked in all the usual places and they all seem to say "no, can't be done", but you guys are clever...
Update: I really do mean with the numbering as above (1, 1.1, 1.1.1 etc.) not just nested lists in general -- sorry for not being more clear. And it looks like the answer's "no" anyway. :-/
no subject
Date: 2004-05-13 02:17 am (UTC)blocks, as above. You could knock up a Perl script to automatically generate the item numbering.
no subject
Date: 2004-05-13 02:17 am (UTC)is easy, because it's just nesting the lists.
You can change the style of the list:
With the "type" attribute - i and I for roman, a and A for lettered.
I'm not sure if you can manage more than that with css - I've never needed to, so have never gone looking. I cna have a try for you, though, if you want?
no subject
Date: 2004-05-13 02:23 am (UTC)If so, you can see from the source how I created it - it's all done with HTML and nesting the lists (which is a bit tricky, 'cos you've got to get the right number of closing tags so it all lines up).
no subject
Date: 2004-05-13 02:29 am (UTC)no subject
Date: 2004-05-13 02:32 am (UTC)no subject
Date: 2004-05-13 02:34 am (UTC)no subject
Date: 2004-05-13 02:35 am (UTC)no subject
Date: 2004-05-13 02:37 am (UTC)no subject
Date: 2004-05-13 02:38 am (UTC)no subject
Date: 2004-05-13 02:41 am (UTC)Oh, yes...
Date: 2004-05-13 02:42 am (UTC)no subject
Date: 2004-05-13 02:44 am (UTC)http://www.w3.org/TR/REC-CSS2/generate.html#counters
no subject
Date: 2004-05-13 02:50 am (UTC)no subject
Date: 2004-05-13 02:54 am (UTC)no subject
Date: 2004-05-13 03:16 am (UTC)Actually, I'm bored enough to install no-cost version of Opera and test the sample code from W3C.
<clickity-click>
Yep, that appears to do exactly what
no subject
Date: 2004-05-13 03:25 am (UTC)no subject
Date: 2004-05-13 04:12 am (UTC)Grrrr.
no subject
Date: 2004-05-13 04:29 am (UTC)Just noticed that it was CSS2 (http://www.w3.org/TR/REC-CSS2/)'s 6th birthday yesterday. Happy belated birthday, CSS2. I hope somebody starts paying attention to you soon.
no subject
Date: 2004-05-13 04:32 am (UTC)no subject
Date: 2004-05-13 04:55 am (UTC)no subject
Date: 2004-05-13 05:01 am (UTC)I've fixed this and the updated page is now live.
Yours,
Janet
(as webmaster@admin... no, wait, hang on, there's something wrong here.
no subject
Date: 2004-05-13 05:25 am (UTC)no subject
Date: 2004-05-13 05:45 am (UTC)no subject
Date: 2004-05-13 08:45 am (UTC)no subject
Date: 2004-05-13 08:57 am (UTC)