I have a hierarchical table I want to display in HTML. The <ul>
and <ol>
tags work great for the hierarchical part of things, but I want to have 2 or 3 columns total where the leftmost column is indented hierarchically, e.g.
- foo
- foo1
- foo2
- foo2a
- foo3
- foo3a
- foo3b
- bar
- bar1
- bar1a
- bar1b
- bar2
- bar1
but I also want each item to have some corresponding information on a column on the right.
How can I do this with HTML and CSS?