nested ordered lists?

View: New views
6 Messages — Rating Filter:   Alert me  

nested ordered lists?

by =JeffH-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm trying to use Anolis/pimpmyspec.net to produce a w3c Note, and am curious
as to how to have nested ordered lists such that I can have output like so..

1. item one
2. item two
   2.1 item two dot one
3. item three
   3.1  item three dot one
4. item four


...or like so..

1 item one
2. item two
   a. item two.a
3. item three


If it is possible, what might the source .html markup look like?

thanks,

=JeffH




Re: nested ordered lists?

by Ian Jacobs-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 3 Jun 2009, at 12:33 PM, =JeffH wrote:

> Hi,
>
> I'm trying to use Anolis/pimpmyspec.net to produce a w3c Note, and  
> am curious
> as to how to have nested ordered lists such that I can have output  
> like so..
>
> 1. item one
> 2. item two
>  2.1 item two dot one
> 3. item three
>  3.1  item three dot one
> 4. item four
>
>
> ...or like so..
>
> 1 item one
> 2. item two
>  a. item two.a
> 3. item three
>
>
> If it is possible, what might the source .html markup look like?

Hi JeffH,

I don't think we have any markup in the default TR CSS for this.

There are a number of tutorials out there to describe the html and css
for this. Here is an example:
  http://dev.opera.com/articles/view/automatic-numbering-with-css-counters/

Hope that helps,

  _ Ian


>
>
> thanks,
>
> =JeffH
>
>
>

--
Ian Jacobs (ij@...)    http://www.w3.org/People/Jacobs/
Tel:                                      +1 718 260 9447



Parent Message unknown Re: nested ordered lists?

by =JeffH-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the reply Ian.

 > I don't think we have any markup in the default TR CSS for this.

where is the "default TR CSS" ?  Is it the same for Notes, WDs, CRs, PRs, Recs?


thanks,

=JeffH




Re: nested ordered lists?

by David Carlisle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> where is the "default TR CSS" ?  Is it the same for Notes, WDs, CRs, PRs, Recs?

They're all in

http://www.w3.org/StyleSheets/TR/


eg this one for a working draft:

http://www.w3.org/StyleSheets/TR/W3C-WD.css

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________


Re: nested ordered lists?

by Ian Jacobs-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 4 Jun 2009, at 11:07 AM, =JeffH wrote:

> Thanks for the reply Ian.
>
> > I don't think we have any markup in the default TR CSS for this.
>
> where is the "default TR CSS" ?  Is it the same for Notes, WDs, CRs,  
> PRs, Recs?
>


Yes, that's what I was referring to.

  _ Ian
--
Ian Jacobs (ij@...)    http://www.w3.org/People/Jacobs/
Tel:                                      +1 718 260 9447



Parent Message unknown Re: nested ordered lists?

by =JeffH-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 > I don't think we have any markup in the default TR CSS for this.

Ok, I've poked thru said default TR CSS and no, there isn't any apparent
handling of the counters for nested ordered lists.


 > There are a number of tutorials out there to describe the html and css
 > for this. Here is an example:
 >   http://dev.opera.com/articles/view/automatic-numbering-with-css-counters/

Thanks, I did go through that tutorial and played around with adding my own CSS
to my draft Note that numbers nested ordered lists, but ended up having some
funny interactions with how Anolis/PimpMySpec.net renders the ToC (sigh), that
I've tugged Geoffrey Snedders' sleeve about.

thanks again,

=JeffH