Page 1 of 1

Advanced numbering in ordered lists?

Posted: Wed Oct 08, 2008 1:34 am
by Luke
I'm fairly sure I know the answer to this question, but I thought I'd ask before I attempted to solve the problem on the client side. Is numbering like this possible with just css?

1. Introduction
1.1 Overview
1.1.1 Introduction
1.1.2 Inspiration
1.1.3 Philosophy
1.2 Installation
1.2.1 Downloading & extracting
1.2.2 Uploading to your server
1.2.3 Running unit tests
2. Topics
2.1 Getting Started
2.2 Reading a csv file
2.3 Writing / appending a csv file
2.4 Using dialects
2.5 Auto-detecting csv format
2.6 Error Handling
3. Components
3.1 Csv_Reader
3.2 Csv_Writer
3.3 Csv_Dialect
3.4 Csv_AutoDetect
3.5 Csv_Exception

I thought I had seen a way to do this in css at one point but I can't seem to find it. If it isn't possible on the client side I'll just whip up a view helper or something.

Re: Advanced numbering in ordered lists?

Posted: Wed Oct 08, 2008 2:59 am
by onion2k
I think you could do that by nesting the ordered lists, and then playing around with the margins.. Not sure how you'd get the periods though.

Re: Advanced numbering in ordered lists?

Posted: Wed Oct 08, 2008 3:37 am
by Christopher
I think you need Javascript for that kind of numbering.

Re: Advanced numbering in ordered lists?

Posted: Wed Oct 08, 2008 4:08 am
by Luke
This has actually spawned a pretty cool idea for an application, so for the last hour or so I've been crafting my idea. Basically it's a really cool way to write documentation. It will be written in Django, so I should be able to produce a somewhat usable version very quickly. :) Can't wait to show it you guys... I'm on one of those idea rolls I get on once in a while :)

Re: Advanced numbering in ordered lists?

Posted: Wed Oct 08, 2008 5:59 am
by Luke
If anybody's interested in my idea, PM me. I'd be happy to have somebody to work on it with, although even just ideas would be helpful. :)

Re: Advanced numbering in ordered lists?

Posted: Wed Oct 08, 2008 6:05 am
by VladSun
Have you seen this one:
http://iron.corona.googlepages.com/list_counter.html

PS: Well, while it works with Opera9, FF3, Safari3 and Google Chrome, it doesn't seem to work with IE7 :(