j4: (dodecahedron)
[personal profile] j4
Okay, this may be a dumb question, but is there a way in XHTML/CSS to create a nested ordered list like this:

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. :-/

Date: 2004-05-13 02:50 am (UTC)
ext_22879: (Default)
From: [identity profile] nja.livejournal.com
There's an evil method I've just thought of, involving using list-style-image in the CSS and specifying classes for each of the list items, which you could do on-the-fly using CGI and ImageMagick, but this is getting far too messy for simple list numbering. I'd like to know a neat solution myself, documents with that sort of numbering are very common in academia.

Date: 2004-05-13 03:25 am (UTC)
From: [identity profile] marnameow.livejournal.com
I briefly thought of that, but it's very much the Wrong Way to do it.

June 2025

S M T W T F S
1234567
891011121314
15 161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 28th, 2026 06:10 pm
Powered by Dreamwidth Studios