I know this is a fairly old topic, but it's come up several times and I
don't know if this solution has ever been stated before:
You can actually set the "value" attribute for the elements with
the number you want it to have. After that, all succeeding s will be
numbered based on that one.
That's pretty much what we did; usually and , with where
appropriate. But I still look longingly at the counters in CSS, and
grimace everytime someone says, "But we have to add in another point
between 2 and 3..."
On 2007-Oct-14, at 14:10 , <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> wrot
Going back to the original post:
>Pick your poison:
>
>1. Invalid code
>2. Use a transitional DOCTYPE
>3. Set value with DOM-script
I'm surprised that no one has said #2; just fall back to a transitional
doctype. You can still write your markup with standards in mind, use the
deprecated attrib
f of Jason Friesen
Sent: Sat 10/13/2007 11:53 PM
To: wsg@webstandardsgroup.org
Subject: Re: [WSG] Catch 22 list problem
My 2ยข
At my College, we often wish to publish excerpts from official policy
manuals &tc where we're showing Section 2.4.7, Paragraphs B through
G, points 3-16, an
Patrick H. Lauke
Sent: Sat 10/13/2007 12:25 PM
To: wsg@webstandardsgroup.org
Subject: Re: [WSG] Catch 22 list problem
[EMAIL PROTECTED] wrote:
How hard would it be to have the list start with two empty elements,
removed from view in what ever way works best?
That would be dangerously close to "
ideas - my preferred
option would really be to work around the problem...
Mike
-Original Message-
From: [EMAIL PROTECTED] on behalf of Patrick H. Lauke
Sent: Sat 10/13/2007 12:25 PM
To: wsg@webstandardsgroup.org
Subject: Re: [WSG] Catch 22 list problem
[EMAIL PROTECTED] wrote:
>
On Oct 13, 2007, at 10:10 PM, Jens Brueckmann wrote:
I prepared a short example at http://lairx.de/071011/numbering-
lists.html
Triggers strict mode in Firefox - what about MSIE, Opera, Safari,
etc?
Opera 9.23/Win32+Linux and MSIE 6 SP1 both render in strict mode as
well.
I do not know
> Next question: How would a custom DTD affect standards-compliance vz.
> quirks mode. That is a subject that I have no knowledge about.
>
> > I prepared a short example at http://lairx.de/071011/numbering-lists.html
>
> Triggers strict mode in Firefox - what about MSIE, Opera, Safari, etc?
Opera
Jens Brueckmann skrev:
there do exist counters in CSS, see
http://www.w3.org/TR/CSS2/generate.html#counters
but, as you might have guessed, they are not supported by Internet Explorer.
Yes. I was a bit too short on that one...
As you already observed, list counters are rather content tha
[EMAIL PROTECTED] wrote:
How hard would it be to have the list start with two empty elements,
removed from view in what ever way works best?
That would be dangerously close to "using markup to achieve a certain
visual effect" though.
P
--
Patrick H. Lauke
>
> How hard would it be to have the list start with two empty elements,
> removed from view in what ever way works best?
>
> Mike
It would be very simple, though you'd need to use a class for it.
Empty list items isn't exactly semantic, however, and anyone browsing with
css turned off would see
AM
>To: wsg@webstandardsgroup.org
>Subject: Re: [WSG] Catch 22 list problem
>
>
>On Oct 12, 2007, at 4:42 AM, Keryx Web wrote:
>
>> A. is not allowed in strict HTML 4/XHTML 1.0,
>Spec says
>> "use CSS".
>>
>> B. I want to start at 3.
>>
>>
On Oct 12, 2007, at 4:42 AM, Keryx Web wrote:
A. is not allowed in strict HTML 4/XHTML 1.0, Spec
says "use CSS".
B. I want to start at 3.
C: CSS has no means to specify a start value!
Pick your poison:
1. Invalid code
2. Use a transitional DOCTYPE
3. Set value with DOM-script
I'll choo
I'm in the 'Invalid code' camp here.
Of course it matters what your target market is too, and whether it
would be an issue if the numbers just didn't show up for IE users
(likely the case).
To my mind, the numbers in a list are inherently content and should
not be passed off to the styles
Hi Lars,
> A. is not allowed in strict HTML 4/XHTML 1.0, Spec says
> "use CSS".
>
> B. I want to start at 3.
>
> C: CSS has no means to specify a start value!
> But regardless of whom I should blame there is a problem to solve. I
> would like to know which solution that you would use and why.
t
Actually, read this page instead:
http://www.arraystudio.com/as-workshop/make-ol-list-start-from-number-different-than-1-using-css.html
I just realised that is not in XHTML.
On 11/10/2007, Svip <[EMAIL PROTECTED]> wrote:
> Try instead.
>
> Regards,
> Svip
>
> On 11/10/2007, Keryx Web <[EMAIL PROT
Try instead.
Regards,
Svip
On 11/10/2007, Keryx Web <[EMAIL PROTECTED]> wrote:
> Hi all!
>
> Short version:
>
> A. is not allowed in strict HTML 4/XHTML 1.0, Spec says
> "use CSS".
>
> B. I want to start at 3.
>
> C: CSS has no means to specify a start value!
>
> Pick your poison:
>
> 1. Invali
Hi all!
Short version:
A. is not allowed in strict HTML 4/XHTML 1.0, Spec says
"use CSS".
B. I want to start at 3.
C: CSS has no means to specify a start value!
Pick your poison:
1. Invalid code
2. Use a transitional DOCTYPE
3. Set value with DOM-script
Long version:
How do we handle c
18 matches
Mail list logo