Ever wanted an easy way to do indented lists with varying numbering schemes
An easy way to do this is with CSS
Will result in it being formatted like this
Major outline item. Big bugs have little bugs The fun can go on forever!
An easy way to do this is with CSS
If you use use style and then have an html list like this will result in it being formatted like this
[style type="text/css">]
ol {
list-style-type: upper-roman;
}
ol ol {
padding-left:2em;
list-style-type: upper-alpha;
}
ol ol ol {
list-style-type: decimal;
}
ol ol ol ol {
list-style-type: lower-alpha;
}
ol ol ol ol ol {
list-style-type: lower-roman;
}
[/style]
[ol style="font-size:xx-small"](needless to say change the [] to the right sort of brackets)
[li] Major outline item.
[ol style="font-size:xx-small"][li] Next level down.
[ol style="font-size:xx-small"][li] And a first point about that.
[ol style="font-size:xx-small"][li] The first point has a note.
[ol style="font-size:xx-small"][li] And that note has two notes.[/li]
[li] Ending with this.
[/li][/ol]
[/li][/ol]
[li] The second point comes along.
[ol style="font-size:xx-small"][li] The second point needs elaboration.
[li] Elaboration is well broken up.[/li]
[li] And shouldn’t go on forever.
[/li][/ol]
[/li][/ol]
[li]Close big!
[ol style="font-size:xx-small"][li]Make the point.[/li][/ol]
[/li][/ol]
[/li]
[li] Big bugs have little bugs
[ol style="font-size:xx-small"][li] Upon their back to bite them.
[ol style="font-size:xx-small"][li] Little bugs have littler bugs.
[ol style="font-size:xx-small"][li] And so, ad infinitum.
[/li][/ol]
[/li][/ol]
[/li][/ol]
[li] The fun can go on forever!
[/li]
[/ol]
Will result in it being formatted like this
- Next level down.
- And a first point about that.
- The first point has a note.
- And that note has two notes.
- Ending with this
- The first point has a note.
- The second point comes along.
- The second point needs elaboration.
- Elaboration is well broken up.
- And shouldn’t go on forever.
- And a first point about that.
- Close big!
- Make the point.
- Upon their back to bite them.
- Little bugs have littler bugs.
- And so, ad infinitum.
- Little bugs have littler bugs.
2 comments:
... then write Lotusscript to take an arbitrary number of items, with willy-nilly ordering and indentation, and make said code output compliant XHTML lists.
Guaranteed fun for all the family!
I need to learn how to write parsers properly...
Got it up to the willy nilly.. with out that how would you choice the order? I do it with something similar to this CSS by injectig the CSS rule into the DOM at the time I inject a new level of outline data.
I get my data from a categorised view as JSON data part of which is the LEVEL and then use that to trigger where the element and corresponding CSS should go in the DOM.
I think that makes sense?
Post a Comment