On Sat, 17 Apr 2004 18:50:27 +0100, David Dorward
<do*****@yahoo.com> wrote:
Zenobia wrote:
how do I emulate the start attribute of ol tag deprecated in
XHTML (strict)?
In theory, you use CSS counters.
In practise you use XHTML 1.0 Transitional, or not split lists into multiple
parts.
There has been some debate about this as regards XHTML 2 on the www-html
mailing list lately. One suggestion was an attribute that would link lists
together.
e.g.
<ol id="myList">
<li>Foo</li>
<li>Foo</li>
</ol>
<foo>
<ol continutes="myList">
<li>Foo</li>
<li>Foo</li>
</ol>
... although I might be misremembering.
I will use transitional XHTML because counters haven't been
implemented in IE6.
As a matter of curiosity, does the counter apply to the OL or
the LI tag? I guess it must apply the OL otherwise the
counter-reset attribute won't make sense.
Eg. In theory, is this what I could do with a browser that
supports counters?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<style type="text/css">
ol:before {counter-reset: letr 1; content: counter(letr,
lower-roman) ". "}
ol.refs:before {counter-reset: letr 3; content:
counter(letr, lower-roman) ". "}
</style>
</head>
<body>
<h3>Notes:</h3>
<ol>
<li>One</li>
<li>Two</li>
</ol>
<h3>References:</h3>
<ol class="refs">
<li>Three</li>
<li>Four</li>
</ol>
</body>
</html>