HighDots Forums  

Can a numbered list start at something > 1?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Can a numbered list start at something > 1? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dave Rado
 
Posts: n/a

Default Can a numbered list start at something > 1? - 12-18-2007 , 08:24 AM






I sometimes need to do pages that are continued from a previous page,
so the numbering needs to start with maybe 5. - is this possible? Or
do I have to use manual numbering and borderless tables in order to
achieve this?

Dave

Reply With Quote
  #2  
Old   
Evertjan.
 
Posts: n/a

Default Re: Can a numbered list start at something > 1? - 12-18-2007 , 10:29 AM






Dave Rado wrote on 18 dec 2007 in
comp.infosystems.www.authoring.stylesheets:

Quote:
I sometimes need to do pages that are continued from a previous page,
so the numbering needs to start with maybe 5. - is this possible? Or
do I have to use manual numbering and borderless tables in order to
achieve this?
<li value='123'>


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


Reply With Quote
  #3  
Old   
Dave Rado
 
Posts: n/a

Default Re: Can a numbered list start at something > 1? - 12-18-2007 , 12:26 PM



On 18 Dec, 16:29, "Evertjan." <exjxw.hannivo... (AT) interxnl (DOT) net> wrote:
Quote:
Dave Rado wrote on 18 dec 2007 in
comp.infosystems.www.authoring.stylesheets:

I sometimes need to do pages that are continued from a previous page,
so the numbering needs to start with maybe 5. - is this possible? Or
do I have to use manual numbering and borderless tables in order to
achieve this?

li value='123'

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
That works great, many thanks.

Dave


Reply With Quote
  #4  
Old   
David Trimboli
 
Posts: n/a

Default Re: Can a numbered list start at something > 1? - 12-18-2007 , 12:43 PM



Evertjan. wrote:
Quote:
Dave Rado wrote on 18 dec 2007 in
comp.infosystems.www.authoring.stylesheets:

I sometimes need to do pages that are continued from a previous page,
so the numbering needs to start with maybe 5. - is this possible? Or
do I have to use manual numbering and borderless tables in order to
achieve this?

li value='123'
According to the HTML 4.01 Strict specification, the Start and Value
attributes of OL and LI, respectively, have been deprecated
(http://www.w3.org/TR/html401/struct/lists.html#h-10.2). I don't know
how it can be done legally; I can't find anything in CSS that covers
this either.

Strangely enough, the text then goes on to say:

DETAILS ABOUT NUMBER ORDER. In ordered lists, it is not possible to
continue list numbering automatically from a previous list or to hide
numbering of some list items. However, authors can reset the number
of a list item by setting its value attribute. Numbering continues
from the new value for subsequent list items. For example:

<ol>
<li value="30"> makes this list item number 30.
<li value="40"> makes this list item number 40.
<li> makes this list item number 41.
</ol>

David
Stardate 7963.7

--
Practice the Klingon language on the tlhIngan Hol MUSH.
http://trimboli.name/klingon/mush.html


Reply With Quote
  #5  
Old   
Jon Fairbairn
 
Posts: n/a

Default Re: Can a numbered list start at something > 1? - 12-18-2007 , 12:50 PM



David Trimboli <david (AT) trimboli (DOT) name> writes:

Quote:
Evertjan. wrote:
Dave Rado wrote on 18 dec 2007 in
comp.infosystems.www.authoring.stylesheets:

I sometimes need to do pages that are continued from a previous page,
so the numbering needs to start with maybe 5. - is this possible? Or
do I have to use manual numbering and borderless tables in order to
achieve this?

li value='123'

According to the HTML 4.01 Strict specification, the Start
and Value attributes of OL and LI, respectively, have been
deprecated
(http://www.w3.org/TR/html401/struct/lists.html#h-10.2). I
don't know how it can be done legally; I can't find anything
in CSS that covers this either.
look for section
12.4 Automatic counters and numbering
in the css 2.1 document

Mind you, I can't agree with the w3c that the number that lists start at
is a purely presentational matter.

--
Jón Fairbairn Jon.Fairbairn (AT) cl (DOT) cam.ac.uk



Reply With Quote
  #6  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Can a numbered list start at something > 1? - 12-18-2007 , 01:09 PM



..oO(Jon Fairbairn)

Quote:
David Trimboli <david (AT) trimboli (DOT) name> writes:

According to the HTML 4.01 Strict specification, the Start
and Value attributes of OL and LI, respectively, have been
deprecated
(http://www.w3.org/TR/html401/struct/lists.html#h-10.2). I
don't know how it can be done legally; I can't find anything
in CSS that covers this either.

look for section
12.4 Automatic counters and numbering
in the css 2.1 document
And the browser support for counters is ... OK, let's forget that.

Quote:
Mind you, I can't agree with the w3c that the number that lists start at
is a purely presentational matter.
Correct. That's why I use 'ul' and my own numbering if the numbers are
important.

Micha


Reply With Quote
  #7  
Old   
VK
 
Posts: n/a

Default Re: Can a numbered list start at something > 1? - 12-18-2007 , 01:31 PM



On Dec 18, 7:29 pm, "Evertjan." <exjxw.hannivo... (AT) interxnl (DOT) net> wrote:
Quote:
Dave Rado wrote on 18 dec 2007 in
comp.infosystems.www.authoring.stylesheets:

I sometimes need to do pages that are continued from a previous page,
so the numbering needs to start with maybe 5. - is this possible? Or
do I have to use manual numbering and borderless tables in order to
achieve this?

li value='123'
However important it would be now, IE up to IE6 has different
interpretation of <li value="123">. It was treated as temporary
numbering change for that one element, so the resulting list from

<ol>
<li>one</li>
<li value="123">two</li>
<li>three</li>
</ol>

would be:

1. one
123. two
3. three

In case of continued numbering I would use more standard start
attribute for the list itself:

<ol start="10">
<li>one</li>
<li>two</li>
<li>three</li>
</ol>

gives:

10. one
11. two
12. three


Reply With Quote
  #8  
Old   
Andy Dingley
 
Posts: n/a

Default Re: Can a numbered list start at something > 1? - 12-18-2007 , 01:40 PM



On 18 Dec, 14:24, Dave Rado <dave.r... (AT) dsl (DOT) pipex.com> wrote:
Quote:
I sometimes need to do pages that are continued from a previous page,
so the numbering needs to start with maybe 5. - is this possible?
No. The spec says you can, but current implementations of it aren't
good enough to let you use it practically. Best work-around is to
generate the numbering server-side, not client-side, which is simple,
obvious and robust.

You can mark-up the HTML using <ul>, and embed an explict number with
<li><span>123</span> ... </li>
Use trivial CSS to switch off the bullets and to indent or outdent the
numbers.


Reply With Quote
  #9  
Old   
Dave Rado
 
Posts: n/a

Default Re: Can a numbered list start at something > 1? - 12-18-2007 , 06:21 PM



On 18 Dec, 19:40, Andy Dingley <ding... (AT) codesmiths (DOT) com> wrote:
Quote:
On 18 Dec, 14:24, Dave Rado <dave.r... (AT) dsl (DOT) pipex.com> wrote:

I sometimes need to do pages that are continued from a previous page,
so the numbering needs to start with maybe 5. - is this possible?

No. The spec says you can, but current implementations of it aren't
good enough to let you use it practically. Best work-around is to
generate the numbering server-side, not client-side, which is simple,
obvious and robust.

You can mark-up the HTML using <ul>, and embed an explict number with
li><span>123</span> ... </li
Use trivial CSS to switch off the bullets and to indent or outdent the
numbers.
How does one generate numbers server side? And how do you switch off
the bullets in a ul list?

Dave


Reply With Quote
  #10  
Old   
Dave Rado
 
Posts: n/a

Default Re: Can a numbered list start at something > 1? - 12-18-2007 , 06:23 PM



On 18 Dec, 19:40, Andy Dingley <ding... (AT) codesmiths (DOT) com> wrote:
Quote:
On 18 Dec, 14:24, Dave Rado <dave.r... (AT) dsl (DOT) pipex.com> wrote:

I sometimes need to do pages that are continued from a previous page,
so the numbering needs to start with maybe 5. - is this possible?

No. The spec says you can, but current implementations of it aren't
good enough to let you use it practically. Best work-around is to
generate the numbering server-side, not client-side, which is simple,
obvious and robust.

You can mark-up the HTML using <ul>, and embed an explict number with
li><span>123</span> ... </li
Use trivial CSS to switch off the bullets and to indent or outdent the
numbers.
Also, what's wrong with VK's suggestion of using <ol start="10">?

Dave


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.