|
-
Apr 29th, 2002, 02:38 PM
#1
Thread Starter
Addicted Member
outlines
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
Last edited by md_huhn; Apr 29th, 2002 at 02:42 PM.
-
Apr 29th, 2002, 02:49 PM
#2
Frenzied Member
Close the OL tags.
Code:
<html>
<head></head>
<body>
<ol type="1">
<li>Foo
<ol type="A">
<li>bar
</ol>
<li>Blah
</ol>
</body>
</html>
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Apr 29th, 2002, 02:58 PM
#3
Thread Starter
Addicted Member
do you know how I would set the actual indentation width ?
-
Apr 29th, 2002, 04:02 PM
#4
Frenzied Member
Not off hand, but I'm sure there is a way with CSS.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|