Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

numbering scheme in ordered lists

Status
Not open for further replies.

SKTodd

Programmer
Mar 11, 2002
33
0
0
US
How do I set up an ordered list with decimal points in the numbers? The numbering scheme I have to use is in the format: 1.1.1, 1.1.2, 1.1.3, 1.2, 1.2.1, 1.2.2 .....
 
What about using a definition list?
Code:
<dl>
  <dt>1.1.1</dt>
  <dd>First Section</dd>

  <dt>1.1.2</dt>
  <dd>Second Section</dd>

  <dt>1.2.1</dt>
  <dd>Another Section</dd>
</dl>

As far as I know you can't do what you're asking using an ordered list.

Kevin
A+, Network+, MCP
 
Thanks for the tip Kevin. I think I am just going to have to hard code the numbers to get the layout I need.
 
Hi SKTodd

Whilst not providing the <b>exact</b> layout of 1.1.2 the following nested <ol>'s work quite nicely

<ol>
<li>First Section</li>
<ol>
<li>First first</li>
<ol>
<li>First first first</li>
<li>First first second</li>
<li>First First Third</li>
</ol>
<li>First Second</li>
<li>First third</li>
</ol>
<li>Second Section</li>
<li>Another Section</li>
</ol>

Nigel Wilson
&quot;kiwi-kid&quot;
 
The nesting works fine but I still need the original numbering scheme to appear:
1 First section
1.1 First sub-section
1.1.1 First item
1.1.2 Second item
1.2 Second sub-section

Thanks for the help Nigel.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top