PDA

Click to See Complete Forum and Search --> : outlines


md_huhn
Apr 29th, 2002, 02:38 PM
My HTML book tells me the following code to create an outline:

<OL type = I>
<LI> First line
<OL type = A>
<LI>second line - indented one

The problem is when I do a loop through a recordset of items I have retrieved from the database and try to add them this code:


<OL type = 1>
<LI> Item one
<OL type = A>
<LI> Sub item one
<Li> sub item two
<OL type = 1>
<LI> sub sub item
<LI>sub sub item 2
<LI> sub item threee
<OL type = 1>
<LI>Item Two
<OL type = A>
<LI> sub item one for item two


Gives me this result:

1. Item One
(space)space) A. subitem 1
(space)space)B. subitem 2
(space)(space)(space)1. sub sub item
(space)(space)(space) 2. sub sub item 2
(space)(space)(space)(space)A. subitem 3
(space)(space)(space)(space)(space)1. Item two
(space)(space)(space)(space)(space)(space)A. sub item one for item two

****space stands for indentation

Does anyone know what I'm doing wrong. How do I create an outline in HTML. My book has left out the details of actually incrementing the main Roman Numeral(or number or whatever)


Thanks,
M

CiberTHuG
Apr 29th, 2002, 02:49 PM
Close the OL tags.


<html>
<head></head>
<body>
<ol type="1">
<li>Foo
<ol type="A">
<li>bar
</ol>
<li>Blah
</ol>
</body>
</html>

md_huhn
Apr 29th, 2002, 02:58 PM
do you know how I would set the actual indentation width ?

CiberTHuG
Apr 29th, 2002, 04:02 PM
Not off hand, but I'm sure there is a way with CSS (http://www.w3c.org/Style/CSS).