Advanced numbering in ordered lists?

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Advanced numbering in ordered lists?

Post 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.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Advanced numbering in ordered lists?

Post 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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Advanced numbering in ordered lists?

Post by Christopher »

I think you need Javascript for that kind of numbering.
(#10850)
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Re: Advanced numbering in ordered lists?

Post 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 :)
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Re: Advanced numbering in ordered lists?

Post 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. :)
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Advanced numbering in ordered lists?

Post 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 :(
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply