Item one
1.1 Sub item one
1.1.1 Sub-sub item one
1.2 Sub item two
Item two
etc.
I though about doing something like this:
<ol>
<li>Item one</li>
<ol>
<li>Sub item one</li>
<ol>
<li>SubSub item one</li>
</ol>
<li>Sub item two</li>
</ol>
<li>Item two</li>
</ol>
But that would result in getting only single number in front of the item, (eg just 1 instead of 1.1.1).
So, can this be done (with some list-style-type setting or something?) or would I simply need to place the 1.1.1 my self and place it in <ol>? Or any other way to solve this?
Thanks in advance!
Edit:
/me slaps vB for deleting all space in front of a line
Yes, that produces the numbers, but it doesn’t seem to make the list appear like 1.1.1 instead of just 1 if I have nested <ol> lists. At least when I tried this html
…but I don’t think theory has been put into practice yet. Nothing but gobbly-gook in IE 6, Netscape 7, Opera 7.1, Mozilla 1.4 and Firebird 0.6.1. I’d be interested to hear if anyone gets it to work…
Just picking this one up again, the link provided above gives an example which didn’t work for me in IE6, Opera 7 or Moz 1.3. I’m looking now for an inbetween solution, I want list numbering like so, is it possible?
I’ve been trying to implement a tailored solution for this where I need paragraph numbering in a list like so
1.
1.1
1.2
1.3 etc etc
It works fine only when I come to 1.10 where theres a double figure after the decimal point the text is not properly aligned ie its shifted one character to the right. Does anyone have any ideas as to how I can fix this without having to add a space before every <a> tag from 1.1 to 1.9?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)">
<html xmlns="[http://www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)" xml:lang="en" lang="en">
<head>
<title></title>
<style>
#annex ul {
margin: 0px;
padding: 0.5em;
list-style: none;
}
#annex ul li {
margin: 0px;
padding: 0.2em;
}
#annex span { margin-right: 2.0em; }
</style>
</head>
<body>
<div id="annex">
<ol>
<li><h2>Managing Your Project - An Overview</h2>
<ul>
<li><span>1.1</span><a href="1.1.htm">Background</a></li>
<li><span>1.2</span><a href="1.2.htm">Do I have a Programme or Project?</a></li>
<li><span>1.3</span><a href="1.3.htm">Identifying a Project</a></li>
<li><span>1.4</span><a href="1.4.htm">Why Project Management?</a></li>
<li><span>1.5</span><a href="1.5.htm">Structure of Guidance</a></li>
<li><span>1.6</span><a href="1.6.htm">Receiving a Mandate</a></li>
<li><span>1.7</span><a href="1.7.htm">Getting Started</a></li>
<li><span>1.8</span><a href="1.8.htm">Planning and Delivering a Project</a></li>
<li><span>1.9</span><a href="1.9.htm">Closing a Project</a></li>
<li><span>1.10</span><a href="1.10.htm">Post Project Review</a></li>
</ul>
</li>
</ol>
</body>
</html>