I'm trying to generate a HTML page that shows a tree structure of parent and child objects, This is the excel version.
http://screencast.com/t/xZtkgSUsO (screen shot of current system)
I can make the chart show from top to bottom, but it becomes messy once there is too much text.
http://jsfiddle.net/kvw7yv05/ (example)
<table border CELLSPACING=5 cellpadding="10" width="700px">
<tr>
<td colspan=18>hello dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf</td>
</tr>
<tr>
<td colspan = 6>hello dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf</td>
<td colspan = 4>a load of text here, more more more more more more</td>
<td colspan = 3>hello dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf</td>
<td colspan = 4>hello dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf</td>
<td><a href="addnew">Add New</a></td>
</tr>
<tr>
<td>hello dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf</td>
<td>hello dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf</td>
<td>hello dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf</td>
<td>hello dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf</td>
<td>hello dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf</td>
<td><a href="addnew">Add New</a></td>
<td>hello dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf</td>
<td>hello dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf</td>
<td>hello dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf</td>
<td><a href="addnew">Add New</a></td>
<td>hello dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf</td>
<td>hello dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf</td>
<td>hello dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf</td>
<td><a href="addnew">Add New</a></td>
<td>hello dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf</td>
<td>hello dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf</td>
<td>hello dfgdfg dfgdfgdfgdf dfgdfgdfgdfgfd dfgdfgdf</td>
<td><a href="addnew">Add New</a></td>
</tr>
</table>
I'm not sure Tables are the best way to complete this, if so. So I have two problems,
1) Is there a nice way I can hide the text as I don't want the width to go over around 700px? show hide functionality
2) The 4th row will have set of child elements, if I start putting text in each cell it will look really nasty. Any ideas on how to make this look presentable.
I can't be the first person to try this, any help would be appreciated.
Thanks,