Hi folks,
We're converting database info to HTML. It's mainly tabular data, but also has some aspects of nested, unordered lists. Our table thus looks like this:
Since there's no way to wrap <ul> around multiple table rows, we're "faking" the unordered list. The tricky part is we need to support a large Netscape 4 audience. We abandoned using this method because it didn't validate:
<td><ul><li>child 2</li></ul></td>
<td><ul><ul><li>subchild 1</li></ul></ul></td>
Now we're exploring this possibility:
<td><span>• child 2</span></td>
<td><span><span>• subchild 1</span></span></td>
This destroys indentation you'd expect from an unordered list, and CSS padding is ruled out because of Netscape 4. We have a solution using to indent the list items:
<td><span> • child 2</span></td>
However if the line wraps the effect is destroyed:
There's my dilemma as far as I've thought through it. Are there any fresh ideas or approaches from the brilliant minds of Tek-Tips for how to treat these bulleted items? We need to stay 508 compliant (accessible), and would like to stay W3C compliant if possible. We *must* support N4, unfortunately.
Thanks in advance!
News and views of some obscure guy
We're converting database info to HTML. It's mainly tabular data, but also has some aspects of nested, unordered lists. Our table thus looks like this:
Code:
+------+-------------------+
| text | parent |
+------+-------------------+
| text | * child 1 |
+------+-------------------+
| text | * child 2 |
+------+-------------------+
| text | * subchild 1 |
+------+-------------------+
<td><ul><li>child 2</li></ul></td>
<td><ul><ul><li>subchild 1</li></ul></ul></td>
Now we're exploring this possibility:
<td><span>• child 2</span></td>
<td><span><span>• subchild 1</span></span></td>
This destroys indentation you'd expect from an unordered list, and CSS padding is ruled out because of Netscape 4. We have a solution using to indent the list items:
<td><span> • child 2</span></td>
However if the line wraps the effect is destroyed:
Code:
+------+-------------------+
| text | * child 2. Here |
| | is some text. |
+------+-------------------+
Thanks in advance!
News and views of some obscure guy